Using Pip To Install Modules In Python Failing
Solution 1:
This issue looks very similar to Python GDAL package missing header file when installing via pip which seems to have working solution.
Usual problem with python libraries that have CPython extensions is explained here and solution is often:
install library by downloading and running windows binary package.
Solution 2:
The easiest way (as suggested by J.F. Sebastian) is to install from http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
Solution 3:
The problem is that Python thinks to be installed on C:\Python\ but this is not true as it is inside portablepython directory. I resolved this using a link.
For instance my portablepython directory (or kivy directory in example) is this:
C:\Users\blabla.KMS\kivy-1.8.0-py3.3-win32\Python33
enter dos prompt and type:
mklink /d c:\Python33\ C:\Users\blabla.KMS\kivy-1.8.0-py3.3-win32\Python33\
than you can go inside c:\Python33\Scripts and use PIP or easy_install finally you can delete the link using:
rmdir Python33
Cool! I installed Django on kivy!
Solution 4:
This isn't a Python problem, but an issue with the compilation of the sources on Windows.
I assume that you followed the installation instructions and installed the GDAL binaries first, with the header files ?
Moreover, you can check the answer to this SO question which points to a ubuntu forum that could help you.
Solution 5:
I had the same problem, but i needed to install 'ebooklib' module, which is not in the list of modules at http://www.lfd.uci.edu/~gohlke/pythonlibs. At the same time i had this module downloaded. But installation with ebooklib's setup.py failed with
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.ex
e"' failed with exit status 2
Finnally, i've installed all the dependent modules separately, from lfd.uci.edu, and after that installing with setup.py was successfull.
Post a Comment for "Using Pip To Install Modules In Python Failing"