-
Notifications
You must be signed in to change notification settings - Fork 35
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
Unable to install python package with pip, getting Microsoft Visual C++ 14.0 is required #40
Comments
It seems there are some libs depending on C/C++ code that have to be compiled. |
I am not having this issue with the same package, but Google brought me here in my search for an answer to the same problem installing a different package (pycryptodome). I found the answer with some good old-fashioned trial and error, but I figured someone else could use this knowledge in the future ;) It turns out that the requirements.txt file we were using to install an in-house tool was specifying an exact version number (==) for the package. Changing the requirement to >= solved the issue, and pip installed the oldest compatible version with no compilation required. As for why this is the case, python packages must be compiled with the same C compiler that was used to compile python itself. I'm betting that the pre-compiled wheels for older versions of the library on the package index are incompatible with newer versions of python. Hopefully this saves someone some digging in the future. |
@jcdevil Any chance making TwoFish optional? |
@mindw : no idea, I do not know how deep is this lib used in |
See my pull request for updating the doc to list out exactly what is required for Windows in terms of C++ dependencies. |
Please download Visual C++ Build Tools Install the visualcppbuildtools_full from 1. Please ensure below dependencies were installed: Python later then 2.6, including Python 3.x, NumPy, SciPy, Pandas, Patsy, Cython Please try it. |
I am trying to install pyjks in Windows 10. Am running everything in admin command prompt.
Initial try to install pyjks resulted in this:
I installed Visual C++ 14.0 from here and tried reinstalling. But got same error. (Someone on stackoverflow said that this is not C++ compiler but are runtime components. Do I have to install full Visual Studio with C++ compiler just for installing pyjks package?)
So as suggested in several comments on this page, I upgraded setuptools:
But still getting the same error. So as suggested on same page, I downloaded tar.gz from here and installed from it:
But its simply not getting installed. Whats going wrong here?
I am running latest version of python:
The text was updated successfully, but these errors were encountered: