nes-py 的构建轮失败
Failed building wheel for nes-py
信息: 我正在使用 Windows 10 与 python 3.7.7 和 pip 19.2.3
问题: 我试图使用 pip install nes-py
在 cmd 提示符下安装 nes-py,但是在安装的 Building wheel for nes-py (setup.py) ... error
阶段我得到了以下错误:
C:\Program Files (x86)\Microsoft Visual Studio19\BuildTools\VC\Tools\MSVC.25.28610\include\yvals.h(12): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for nes-py
编辑: 我从 Windows SDK 复制并粘贴了很多文件,现在有一个新错误:
Generating code
Finished generating code
LINK : fatal error LNK1158: cannot run 'rc.exe'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\link.exe' failed with exit status 1158
----------------------------------------
ERROR: Failed building wheel for nes-py
我通过安装 node.js 解决了这个问题。这为我安装了所有需要的文件,并允许我安装任何有轮子的包。这不是一个非常优雅的修复,因为它还安装了许多我不需要的文件,但它似乎可以工作并且非常简单。
我只通过安装 Visual Studio Community 解决了这个问题(我有 Visual Studio 代码)。
我是根据 here 关于安装 py-nes 的要求的评论 Visual Studio 社区中已有的。
尝试使用 conda create -n your_env_name python=3.7
的全新环境。我用 python 3.7 创建了。它解决了这个问题。
信息: 我正在使用 Windows 10 与 python 3.7.7 和 pip 19.2.3
问题: 我试图使用 pip install nes-py
在 cmd 提示符下安装 nes-py,但是在安装的 Building wheel for nes-py (setup.py) ... error
阶段我得到了以下错误:
C:\Program Files (x86)\Microsoft Visual Studio19\BuildTools\VC\Tools\MSVC.25.28610\include\yvals.h(12): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for nes-py
编辑: 我从 Windows SDK 复制并粘贴了很多文件,现在有一个新错误:
Generating code
Finished generating code
LINK : fatal error LNK1158: cannot run 'rc.exe'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\link.exe' failed with exit status 1158
----------------------------------------
ERROR: Failed building wheel for nes-py
我通过安装 node.js 解决了这个问题。这为我安装了所有需要的文件,并允许我安装任何有轮子的包。这不是一个非常优雅的修复,因为它还安装了许多我不需要的文件,但它似乎可以工作并且非常简单。
我只通过安装 Visual Studio Community 解决了这个问题(我有 Visual Studio 代码)。
我是根据 here 关于安装 py-nes 的要求的评论 Visual Studio 社区中已有的。
尝试使用 conda create -n your_env_name python=3.7
的全新环境。我用 python 3.7 创建了。它解决了这个问题。