question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failure in install with pip

See original GitHub issue

OS: windows 10 python version: 3.5 form Anaconda the command pip install pyflux fails and has the following output from cmd:

Failed building wheel for pyflux Running setup.py clean for pyflux Failed to build pyflux Installing collected packages: pyflux Running setup.py install for pyflux ... error

Complete output from command c:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Victor\\AppData\\Local\\Temp\\pip-build-kmpjxnhy\\pyflux\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Victor\AppData\Local\Temp\pip-szvhc2lu-record\install-record.txt --single-version-externally-managed --compile:

A few things happen successfully after that message but at the end this happens:

_check_build.c c:\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 /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\anaconda3\lib\site-packages\numpy\core\include -Ic:\anaconda3\include -Ic:\anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcpyflux\__check_build\_check_build.c /Fobuild\temp.win-amd64-3.5\Release\pyflux\__check_build\_check_build.obj" failed with exit status 2

---------------------------------------- Command "c:\anaconda3\python.exe -u -c "import setuptools, [pyflux fail install.txt](https://github.com/RJT1990/pyflux/files/1087255/pyflux.fail.install.txt) tokenize;__file__='C:\\Users\\Victor\\AppData\\Local\\Temp\\pip-build-kmpjxnhy\\pyflux\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Victor\AppData\Local\Temp\pip-szvhc2lu-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Victor\AppData\Local\Temp\pip-build-kmpjxnhy\pyflux\

How can I fix this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

21reactions
RichardMMcommented, Aug 14, 2017

I found a solution for windows(and probably others) users facing this problem. Download the wheel file from this site the cd into the download folder from command prompt and do pip install pyflux-0.4.15-cp36-cp36m-win_amd64.whl. make sure you download the right wheel file for your python version and sytem

6reactions
abdullah-alnahascommented, Apr 18, 2020

This is what worked for me: pip install git+https://github.com/RJT1990/pyflux

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install modules with PIP (and fix it when it fails) - Medium
Trying to fix PIP ... or you could just try and install pip from scratch by doing the following. Copy the code from...
Read more >
pip fails to install anything, error: invalid command 'egg_info'
This is when I began to have problems installing packages with pip. sudo pip install -vvv pygoogle. Will output the following:
Read more >
Problem with "pip install" - Python Help
The Python installation/environment in which you installed the package is not the same as the one you are using within Spyder, or ·...
Read more >
Pip install fails | Apple Developer Forums
Pip install fails · 1) apparently successful install of beta · 2) xcode command line tools installed via terminal · 3) python -V...
Read more >
Python3 pip3 install broken on Ubuntu
Use the command python3 -m pip --version to see if your case correspond to the same situation (pip3 is also available with this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found