Failed building wheel for nes-py - python

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.

I only solved this issue by installing Visual Studio Community (I had Visual Studio Code).
I did this following the comment here about the requirements to install py-nes that are already inside Visual Studio Community.

Try with completely new enviorment using conda create -n your_env_name python=3.7. I have created with python 3.7. It resolves the issue.

You just download and install this program and run the command again https://visualstudio.microsoft.com/visual-cpp-build-tools/

I can solve the problem - install SDK for Windows 10
screenshot

Related

I can't install eth-brownie on windows

I also installed microsoft c++ 14.... but i really don't know how to get around this
Here is the error:
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\aiatu\.local\pipx\logs\cmd_2022-12-23_22.25.32_pip_errors.log
pip failed to build packages:
bitarray
cytoolz
yarl
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
cytoolz/dicttoolz.c(209): fatal error C1083: Non Š possibile aprire il file inclusione: 'longintrepr.h': No such file or directory
yarl/_quoting_c.c(196): fatal error C1083: Non Š possibile aprire il file inclusione: 'longintrepr.h': No such file or directory
Error installing eth-brownie.
Once again, here answering my own queston.
I had python 3.11.1, i deleted this python version and installed 3.10.9. and then i installed brownie via: pip install eth-brownie

How to pip install yarl without this error: link.exe failed with exit code 1158?

I'm trying to run the command pip install yarl
I get this error:
LINK : fatal error LNK1158: can't execute 'rc.exe'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit code 1158
I've been trying installing this tools:
Also adding this folder to path: C:\Program Files (x86)\Windows Kits\10\bin\x64
Didn't work anything, thanks

Flask-SimpleLDAP failing to install because of python-ldap prerequisite failure (Windows Active Directory)

I'm trying to install Flask-SimpleLDAP on a Windows machine so I can use Active Directory for authentication for a Dash app I have created.
I'm following this article - https://towardsdatascience.com/a-simple-way-to-integrate-dash-with-ldap-4d5d059ee3a6
The install is failing when it tries to build the wheel for "python-ldap", with the errors:
Building wheel for python-ldap (setup.py) ... error
ERROR: Command errored out with exit status 1:
C:\Users\canderson\AppData\Local\Temp\pip-install-zixltin3\python-ldap\Modules\common.h(15): fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for python-ldap
I tried installing with both pip and pip3 with the same result, using the commands:
pip3 install flask-simpleldap
pip install flask-simpleldap
As a workaround I tried installing python3-ldap which installed no problem though it didn't help with the install of Flask-SimpleLDAP as the original (python-ldp) package is bundled into the install.
Do any of you know of a workaround for this or if there is another more freidnly version of Flask-SimpleLDAP available?

C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2

The below error occurs while installing pyradiomics packages using
python setup.py install
fatal error C1083: Cannot open include file: 'stdlib.h': No such file
or directory error: command 'C:\Program Files\Microsoft Visual
Studio 14.0\VC\bin\cl.exe' failed with exit status 2
This error indicates your compiler can't find the required header files to compile the PyRadiomics C Extensions' source code.
The easiest solution is to get the latest PyRadiomics wheel from PyPi (pip install pyradiomics), which are precompiled for 64-bit Python 2.7, 3.4, 3.4, 3.4 on windows, linux and mac.

Biopython install error anaconda on windows

from c:/users/me/anaconda3/scripts I pip install biopythonbut it fails with the following errors:
c:\users\steph\anaconda3\include\pyconfig.h(243): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
Confusingly, I do have a pyconfig.h in c:\users\steph\anaconda3\include. Cannot find what an exit status 2 is either...
Biopython recommends installing through conda if your python is also installed through conda. See here.

Categories

Resources