RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.1k stars 240 forks source link

failure in install with pip #102

Closed RichardMM closed 6 years ago

RichardMM commented 7 years ago

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?

andymason57 commented 7 years ago

I had a similar problem with pip install on Ubuntu Linux. One of the error messages indicated a problem with gcc. I installed gcc and the package then successfully installed.

RichardMM commented 7 years ago

I have tried your solution using this but install still did not work. I also tried installing windows sdk as recommended in stack overflow but still... no dice.

venergiac commented 6 years ago

same problem

customize MSVCCompiler customize MSVCCompiler using build_ext building 'pyflux.__check_build._check_b compiling C sources error: Unable to find vcvarsall.bat

RichardMM commented 6 years ago

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

venergiac commented 6 years ago

solved!!! tx

RJT1990 commented 6 years ago

:)

MoKhaleel commented 6 years ago

How do I know which version of the wheel is suitable for my system?

RichardMM commented 6 years ago

Each wheel name specifies the python version and system architechture look at the cp part of the wheel ie cp27 means python 2.7 while cp34 means python 3.4 then the 'win32' or 'win_amd64' specifies whether the the package was meant for a 64bit or a 32 bit system therefore make sure the wheel is meant for your python version and your OS architechture.

On Sun, Mar 4, 2018 at 4:24 AM, Mo Khaleel notifications@github.com wrote:

How do I know which version of the wheel is suitable for my system?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RJT1990/pyflux/issues/102#issuecomment-370194036, or mute the thread https://github.com/notifications/unsubscribe-auth/AVY8ekspyKDzHPacOS0EJyyOLKmuKDZ7ks5ta0JfgaJpZM4N_KMm .

tparekh2 commented 6 years ago

@RichardMM "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" Works for successfully installing twisted!! Thanks you :)

Samrangi commented 6 years ago

Thank you so much @RichardMM .. I have been trying since yesterday to get this thing done, by adidng channels and what not. Thank You very much.

sepiatone commented 5 years ago

@tparekh2 Thank you!

matthewfieger commented 4 years ago

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
abdullah-alnahas commented 4 years ago

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

pabloafranco commented 3 years ago

Excelent this works for me! @RichardMM "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" Works for successfully installing twisted!! Thanks you :)

vonjourn8519 commented 3 years ago

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

works!

yuanmingqiu commented 2 years ago

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

work well for me! thx!

nopeless commented 5 months ago

No module named Cython -> pip install cython