I'm having trouble installing a Python package (specifically, JPype1 0.5.7) on my Windows machine, and would like to install it with Christoph Gohlke's Window binaries. (Which, to my experience, alleviated much of the fuss for many other package installations.)
However, while Christoph used to provide .exe files in the past, recently it seems he's uploading .whl files instead.
http://www.lfd.uci.edu/~gohlke/pythonlibs/#jpype
But how do I install .whl files?
Notes:
- I've found documents on wheel, but they don't seem so staightforward in explaining how to install .whl files.
- This question is a duplicate with this question, which wasn't directly answered.
You can install the .whl file, using
pip install filename
. Though to use it in this form, it should be in the same directory as your command line, otherwise specify the complete filename, along with its address likepip install C:\Some\PAth\filename
.Also make sure the .whl file is of the same platform as you are using, do a
python -V
to find out which version of Python you are running and if it is win32 or 64, install the correct version according to it.To avoid having to download such files, you can try:
For more information, see this.
What I did was first updating the pip by using the command:
pip install --upgrade pip
and then I also installed wheel by using command:pip install wheel
and then it worked perfectly Fine.Hope it works for you I guess.
There are several file versions on the great Christoph Gohlke's site.
Something I have found important when installing wheels from this site is to first run this from the Python console:
so that you know which version you should install for your computer. Picking the wrong version may fail the installing of the package (especially if you don't use the right CPython tag, for example, cp27).
To be able to install wheel files with a simple doubleclick on them you can do one the following:
1) Run two commands in command line under administrator privileges:
2) Alternatively, they can be copied into a
wheel.bat
file and executed with 'Run as administrator' checkbox in the properties.PS pip.exe is assumed to be in the PATH.
Update:
(1) Those can be combined in one line:
(2) Syntax for .bat files is slightly different:
Also its output can be made more verbose:
see my blog post for details.
You have to run pip.exe from the command prompt on my computer. I type
C:/Python27/Scripts/pip2.exe install numpy