Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure in install with pip #102

Closed
RichardMM opened this issue Jun 20, 2017 · 17 comments
Closed

failure in install with pip #102

RichardMM opened this issue Jun 20, 2017 · 17 comments

Comments

@RichardMM
Copy link

RichardMM commented Jun 20, 2017

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

RichardMM commented Aug 11, 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

@venergiac
Copy link

solved!!! tx

@RJT1990
Copy link
Owner

RJT1990 commented Sep 28, 2017

:)

@RJT1990 RJT1990 closed this as completed Sep 28, 2017
@MoKhaleel
Copy link

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

@RichardMM
Copy link
Author

RichardMM commented Mar 4, 2018 via email

@tparekh2
Copy link

@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
Copy link

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
Copy link

@tparekh2 Thank you!

@matthewfieger
Copy link

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
Copy link

abdullah-alnahas commented Apr 18, 2020

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

@pabloafranco
Copy link

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
Copy link

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

works!

@yuanmingqiu
Copy link

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

work well for me! thx!

@nopeless
Copy link

nopeless commented Feb 5, 2024

No module named Cython -> pip install cython

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests