Python filename.whl 在此平台上不受支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38866758/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
filename.whl is not a supported wheel on this platform
提问by Teoman Yüksel
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
我对 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
numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl 在此平台上不受支持。在 C://Users/myUsername/pip/pip.log 中存储失败的调试日志
I'm using 64-bit and Python 3.4.0
我使用的是 64 位和 Python 3.4.0
What is wrong?
怎么了?
采纳答案by DSchmidt
Try updating pip first before you rename pip install --upgrade pip
在重命名之前先尝试更新 pip pip install --upgrade pip
回答by konoufo
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.
numpy-1.11.1+mkl-cp34-none-win_amd64.whl
在安装之前,您可能必须像这样重命名 whl 文件。您pip
在车轮文件名中识别的标签数量有限。
See this answer for more on this: https://stackoverflow.com/a/28111899/4401501
有关更多信息,请参阅此答案:https: //stackoverflow.com/a/28111899/4401501
回答by user3046442
There are several things to consider
有几件事需要考虑
Python versions should match, OS should be 64 bit and python should also be 64 bit.
Python 版本应该匹配,操作系统应该是 64 位,python 也应该是 64 位。
And as in your case both of these conditions are met, you have to make sure that pipis able to handle all the fields in wheel file name.
在你的情况下,这两个条件都满足,你必须确保pip能够处理轮文件名中的所有字段。
For example in my case my pip was not handling "cp35m"
例如,在我的情况下,我的 pip 没有处理“cp35m”
To ensure, in python shell
为了确保,在python shell中
import pip
导入点
Then type
然后输入
pip.pep425tags.get_supported()
pip.pep425tags.get_supported()
you should be able to see all the fields your pipcommand can handle. If any one is missing try updating Pip first.
您应该能够看到pip命令可以处理的所有字段。如果缺少任何一个,请先尝试更新 Pip。
However in my case even updating was giving error. So I uninstalled python 3.5.1and installed python 3.5.2, and that worked for me.
但是在我的情况下,即使更新也会出错。所以我卸载了python 3.5.1并安装了python 3.5.2,这对我有用。
回答by Christina Wang
Things to check for:
检查事项:
- Even though I my system is 64 I had 32 python installed. You can check this by opening your IDLE.
- 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.
- 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.
- 即使我的系统是 64,我也安装了 32 个 python。您可以通过打开 IDLE 来检查这一点。
- 我安装了 python 2 和 3,所以更新 pip 为我更新了错误的 python。当然,我只是没有尝试安装正确类型的软件包,因为路径中的 Python 版本是错误的。
- 如果您仍然像我一样遇到一些问题,其中 pip2 或 pip3 修复似乎不起作用,我做了一个快速修复。我的 pip 路径中只有 python 3,所以我转到系统>高级系统设置>环境变量,然后将“C:\Python27\Scripts\”添加到
PATH
变量中。这解决了我的问题。
回答by user9269553
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/
确保安装了 Python 64 位。你可以在这里下载,64位版本在页面底部:https: //www.python.org/downloads/release/python-370/