Python filename.whl 在此平台上不受支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28568070/
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 supported wheel on this platform
提问by lskrinjar
I would like to install scipy-0.15.1-cp33-none-win_amd64.whl
that I have saved to local drive. I am using:
我想安装scipy-0.15.1-cp33-none-win_amd64.whl
我保存到本地驱动器的文件。我在用:
pip 6.0.8 from C:\Python27\Lib\site-packages
python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]
when I run:
当我运行时:
pip install scipy-0.15.1-cp33-none-win_amd64.whl
I get the following error:
我收到以下错误:
scipy-0.15.1-cp33-none-win_amd64.whl is not supported wheel on this platform
I would like to know what the problem is?
我想知道是什么问题?
采纳答案by ismail
cp33
means CPython 3.3
you need scipy?0.15.1?cp27?none?win_amd64.whl
instead.
cp33
意味着CPython 3.3
你需要scipy?0.15.1?cp27?none?win_amd64.whl
代替。
回答by aldel
This can also be caused by using an out-of-date pip
with a recent wheel file.
这也可能是由于使用过时pip
的最新轮文件引起的。
I was very confused, because I was installing numpy-1.10.4+mkl-cp27-cp27m-win_amd64.whl
(from here), and it is definitely the correct version for my Python installation (Windows 64-bit Python 2.7.11). I got the "not supported wheel on this platform" error.
我很困惑,因为我正在安装numpy-1.10.4+mkl-cp27-cp27m-win_amd64.whl
(从这里),它绝对是我安装 Python 的正确版本(Windows 64 位 Python 2.7.11)。我收到“此平台上不支持的轮子”错误。
Upgrading pip with python -m pip install --upgrade pip
solved it.
升级 pippython -m pip install --upgrade pip
解决了它。
回答by 1man
I had the same problem while installing scipy-0.17.0-cp35-none-win_amd64.whl and my Python version is 3.5. It returned the same error message:
我在安装 scipy-0.17.0-cp35-none-win_amd64.whl 时遇到了同样的问题,我的 Python 版本是 3.5。它返回了相同的错误消息:
scipy-0.17.0-cp35-none-win_amd64.whl is not supported wheel on this platform.
I realized that amd64 is not about my Windows, but about the Python version. Actually I am using a 32 bit Python on a 64 bit Windows. Installing the following file solved the issue:
我意识到 amd64 不是关于我的 Windows,而是关于 Python 版本。实际上我在 64 位 Windows 上使用 32 位 Python。安装以下文件解决了这个问题:
scipy-0.17.0-cp35-none-win32.whl
回答by u6294745
I come across this problem because the wrong name of my package (scipy-0.17.0-cp27-none-win_amd64 (1)
), after I delete the '(1)' and change the package to scipy-0.17.0-cp27-none-win_amd64
, the problem got resolved.
我遇到这个问题是因为我的包(scipy-0.17.0-cp27-none-win_amd64 (1)
)的名称错误,在我删除“(1)”并将包更改为 后scipy-0.17.0-cp27-none-win_amd64
,问题得到了解决。
回答by Ogglas
I tried to install scikit-image but got the following error when I tried to install the .whl file even though my installed version of python was 2.7 32-bit. scikit_image-0.12.3-cp27-cp27m-win32.whl is not a supported wheel on this platform.
我尝试安装 scikit-image,但是当我尝试安装 .whl 文件时出现以下错误,即使我安装的 python 版本是 2.7 32 位。 scikit_image-0.12.3-cp27-cp27m-win32.whl is not a supported wheel on this platform.
However I also got this message before the error message:
但是,我在错误消息之前也收到了此消息:
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I then ran the command python -m pip install --upgrade pip
and then pip install scikit_image-0.12.3-cp27-cp27m-win32.whl
worked fine. I hope this can help someone!
然后我运行了命令python -m pip install --upgrade pip
,然后pip install scikit_image-0.12.3-cp27-cp27m-win32.whl
工作正常。我希望这可以帮助某人!
回答by Arun Naudiyal
If you are totally new to python read step by step or go directly to 5th step directly. Follow the below method to install scipy 0.18.1 on Windows 64-bit , Python 64-bit . Be careful with the versions of1. Python 2. Windows 3. .whl version of numpy and scipy files 4. First install numpy and then scipy.
如果您完全不熟悉python,请逐步阅读或直接进入第5步。按照以下方法在 Windows 64 位、Python 64 位上安装 scipy 0.18.1。 小心1. Python 2. Windows 3. .whl 版本的 numpy 和 scipy 文件 4.先安装 numpy,然后安装 scipy。
pip install FileName.whl
- ForNumpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpyForScipy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
- ForNumpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy ForScipy:http: //www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
Be aware of the file name ( what I mean is check the cp no). Ex :scipy-0.18.1-cp35-cp35m-win_amd64.whl To check which cp is supported by your pip , go to point No 2 below.
注意文件名(我的意思是检查 cp 号)。例如:scipy-0.18.1-cp35-cp35m-win_amd64.whl 要检查您的 pip 支持哪个 cp,请转到下面的第 2 点。
If you are using .whl file . Following errors are likely to occur .
如果您使用 .whl 文件。可能会出现以下错误。
- You are using pip version 7.1.0, however version 8.1.2 is available.
- 您使用的是 pip 版本 7.1.0,但版本 8.1.2 可用。
You should consider upgrading via the 'python -m pip install --upgrade pip' command
您应该考虑通过“python -m pip install --upgrade pip”命令进行升级
- scipy-0.15.1-cp33-none-win_amd64.whl.whl is not supported wheel on this platform
- scipy-0.15.1-cp33-none-win_amd64.whl.whl 在此平台上不受支持
For the above error : start Python(in my case 3.5), type :
import pip
print(pip.pep425tags.get_supported())
对于上述错误:启动 Python(在我的情况下为 3.5),键入:
import pip
print(pip.pep425tags.get_supported())
output :
输出 :
[('cp35', 'cp35m', 'win_amd64'), ('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
[('cp35', 'cp35m', 'win_amd64'), ('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none ', 'any'), ('cp3', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none', 'any'), ( 'py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
In the output you will observe cp35 is there , so download cp35 for numpy as well as scipy. Further edits are most welcome !!!!
在输出中,您将观察到 cp35 在那里,因此下载 numpy 和 scipy 的 cp35。进一步的编辑是最受欢迎的!!!!
回答by u_found_me
First of all, cp33means that it is to be used when you have Python 3.3running on your system. So if you have Python 2.7on your system, try installing the cp27version.
首先,cp33意味着当您的系统上运行Python 3.3时将使用它。因此,如果您的系统上有Python 2.7,请尝试安装cp27版本。
Installing scipy-0.18.1-cp27-cp27m-win_amd64.whl, needs a Python 2.7 running and a 64-bit system.
安装scipy-0.18.1-cp27-cp27m-win_amd64.whl,需要运行 Python 2.7 和 64 位系统。
If you are still getting an error saying "scipy-0.18.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform", then go for the win32 version. By this I mean install scipy-0.18.1-cp27-cp27m-win32.whlinstead of the first one. This is because you might be running a 32-bit python on a 64-bit system. The last step successfully installed scipy for me.
如果您仍然收到错误消息“scipy-0.18.1-cp27-cp27m-win_amd64.whl 在此平台上不受支持”,请选择 win32 版本。我的意思是安装scipy-0.18.1-cp27-cp27m-win32.whl而不是第一个。这是因为您可能在 64 位系统上运行 32 位 python。最后一步为我成功安装了 scipy。
回答by ravi
Change the filename to scipy-0.15.1-cp33-none-any.whl
and then run this command:
将文件名更改为scipy-0.15.1-cp33-none-any.whl
,然后运行以下命令:
pip install scipy-0.15.1-cp33-none-any.whl
It should work :-)
它应该工作:-)
回答by Harsh Trivedi
I had similar problem, installing a 64-bit version for python27 on windows 7 64bit. Everything was up-to-date, yet I got the message
我遇到了类似的问题,在 Windows 7 64 位上为 python27 安装了 64 位版本。一切都是最新的,但我收到了消息
scipy-0.18.1-cp27-cp27m-win_amd64.whl is not supported wheel on this platform
scipy-0.18.1-cp27-cp27m-win_amd64.whl is not supported wheel on this platform
Than I donwloaded a 32-bit whl and it worked.
比我下载了一个 32 位 whl 并且它起作用了。
pip install scipy-0.18.1-cp27-cp27m-win32.whl
I suspect that the problem was probably that I dont have an AMD processor, rather and intel one, and the scipy 64bit version says amd64 in the end.
我怀疑问题可能是我没有 AMD 处理器,而是英特尔处理器,而 scipy 64 位版本最后说的是 amd64。
回答by tom
try conda for installation,
seems to resolve versions
on the fly:conda install scikit-learn
尝试使用 conda 进行安装,似乎可以即时解决版本问题:conda install scikit-learn