filename.whl is not a supported wheel on this plat

2019-03-30 19:06发布

I saw the same question but it didn't work for me.

pip install PyOpenGL.3.1.1-cp34-cp34m-win_amd64.whl

also I 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?

4条回答
女痞
2楼-- · 2019-03-30 19:23

Try updating pip first before you rename pip install --upgrade pip

查看更多
男人必须洒脱
3楼-- · 2019-03-30 19:36

Things to check for:

  1. Even though I my system is 64 I had 32 python installed. You can check this by opening your IDLE.
  2. I had python 2 and 3 installed so updating pip was updating the wrong python for me. And of course I just wasn't trying to install the right kind of package because it was the wrong python version in the path.
  3. If you are still having some problems like me where doing pip2 or pip3 fixes didn't seem to work, I did a quick fix. My pip only had python 3 in its path, so I went to systems>advanced system settings>environment variables and then added "C:\Python27\Scripts\" to the PATH variable. This solved my issues.
查看更多
霸刀☆藐视天下
4楼-- · 2019-03-30 19:38

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.

查看更多
男人必须洒脱
5楼-- · 2019-03-30 19:42

You'll probably have to rename your whl file like this 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: https://stackoverflow.com/a/28111899/4401501

查看更多
登录 后发表回答