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.
On the MacOS, with
pip
installed via MacPorts into the MacPorts python2.7, I had to use @Dunes solution:Where
python
was replaced by the MacPorts python in my case, which ispython2.7
orpython3.5
for me.The
-m
option is "Run library module as script" according to the manpage.(I had previously run
sudo port install py27-pip py27-wheel
to installpip
andwheel
into my python 2.7 installation first.)On Windows you can't just upgrade using
pip install --upgrade pip
, because thepip.exe
is in use and there would be an error replacing it. Instead, you should upgradepip
like this:Then check the
pip
version:If it shows
6.x
series, there is wheel support.Only then, you can install a wheel package like this:
To install from wheel, give it the directory where the wheel is downloaded. For example, to install
package_name.whl
:Make sure you have updated pip first to enable wheel support: