Open Mahesha999 opened 6 years ago
It seems there are some libs depending on C/C++ code that have to be compiled. You probably need to install this on your machine : https://go.microsoft.com/fwlink/?LinkId=691126 Notice that I had quite the same issue with another libs, and found the solution here : https://stackoverflow.com/questions/47253638/error-microsoft-visual-c-14-0-is-required-when-installing-python-package HTH ;)
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 pyjks
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 After all the dependencies and visualcppbuildtools_full are installed, please relaunch your IDE or reboot computer. Please execute "pip3 install statsmodels" again after IDE relaunch. I'm using Windows VS code, and I found the statsmodels installation won't work unless I relaunch my VS code.
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: