Info: I am using Windows 10 with python 3.7.7 and pip 19.2.3
Problem: I was trying to install nes-py in cmd prompt using pip install nes-py
, but during the Building wheel for nes-py (setup.py) ... error
stage of the install I got the following error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.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
Edit: I copy and pasted over many files from the Windows SDK and now have a new error:
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
I solved this issue by installing node.js. This installed all the needed files for me and allowed me to install any packages that had a wheel. This isn't a very elegant fix since it also installed many files that I do not need, but it seems to work and is very simple.