pyflux: failure in install with pip

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?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 17 (1 by maintainers)

Most upvoted comments

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

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

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

works!

I had a lot of trouble installing this library. I first tried installing inside a python docker container but failed due to build errors. Installing in a windows conda environment with the 3.7 wheel finally worked. I’m running Windows 10 Enterprise 64 bit.

conda create --name pfenv python=3.7
conda activate pfenv
conda install numpy pandas scipy patsy matplotlib seaborn pandas-datareader jupyter
pip install numdifftools
pip install pyflux-0.4.17-cp37-cp37m-win_amd64.whl