Reputation: 969
I saw the same question, but it didn't work for me.
pip install PyOpenGL.3.1.1-cp34-cp34m-win_amd64.whl
I also have the same problem for NumPy:
pip install numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl
Then I get:
numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform. Storing debug log for failure in C://Users/myUsername/pip/pip.log
I'm using 64-bit and Python 3.4.0. What is wrong?
Upvotes: 24
Views: 123590
Reputation: 11
This problem may appear if the wheel has a strange name or it is a wrong version. What can be done to fix is:
1- Rename the wheel with an accepted name (not advisable since this may hide the version of the wheel); 2- Download the proper wheel to install it.
To check the correct version for your platform, one can first install the package in your system with pip3 install package==wanted.version
, where package
is the package name and wanted.version
is the version that you want to install.
This will allow pip to automatically install the package according to your platform. The correct wheel will be shown in the output and with this you can uninstall the package again with pip3 uninstall package
and go to https://pypi.org/ to download the correct version for your platform.
Upvotes: 0
Reputation: 11
First check which version of the interpreter, 32-bit or 64-bit. Type python
and you will get it. Mine is 64 bit.
Next, check if your wheel file is for 64 bit or 32 bit. Compare it with your Python bitness to see if it is the same or not.
If there is still an error coming, check your file location in CMD and compare it with where you have saved your file.
Save the file in the cmd location, for example, *C:\Users*, and you get the result successfully installed.
Upvotes: 1
Reputation: 11
This is late, but I ran into this error recently. At one point I created a folder with several prerequisite .whl files and added "prereq - 1 - ", "prereq - 2 - ", etc. to the beginnings of the filenames to help others/myself in the future know which order to install them in (I work in an offline environment).
I would get the "filename.whl is not a supported wheel on this platform" error when trying to py -m pip install "filename.whl" --no-index
. When I removed the filename "prefix" that I added, it worked.
Just wanted to throw this out there in case anyone else runs into this issue after editing the name of a .whl file.
Upvotes: 1
Reputation: 436
You'll probably have to rename your .whl file like numpy-1.11.1+mkl-cp34-none-win_amd64.whl
before installing. Your pip
has a finite number of tags it recognizes in wheel filenames.
See this answer for more on this: Cannot install numpy from wheel format
Upvotes: 9
Reputation: 687
pip debug --verbose
pip install pycurl-7.43.0.4-cp37-cp37m-win_amd64.whl
Supported tags portion looks like:
Upvotes: 28
Reputation: 201
Be sure to have Python 64 bit install. You can download it here and the 64bit version is at the bottom of the page: https://www.python.org/downloads/release/python-370/
Upvotes: 0
Reputation: 27
Things to check for:
PATH
variable. This solved my issues. Upvotes: 2
Reputation: 488
There are several things to consider
Python versions should match, OS should be 64 bit and python should also be 64 bit.
And as in your case both of these conditions are met, you have to make sure that pip is able to handle all the fields in wheel file name.
For example in my case my pip was not handling "cp35m"
To ensure, in python shell
import pip
Then type
pip.pep425tags.get_supported()
you should be able to see all the fields your pip command can handle. If any one is missing try updating Pip first.
However in my case even updating was giving error. So I uninstalled python 3.5.1 and installed python 3.5.2, and that worked for me.
Upvotes: 2
Reputation: 1127
Try updating pip first before you rename pip install --upgrade pip
Upvotes: 14