简体   繁体   English

从轮子格式安装numpy:“......这个平台上不支持轮子”

[英]Installing numpy from wheel format: “…is not a supported wheel on this platform”

I realize a question that relates to this has already been asked at Cannot install numpy from wheel format , but the solution presented there does not work for me. 我意识到一个与此相关的问题已经被问到无法从轮式安装numpy ,但是那里提出的解决方案对我不起作用。 I have asked on that thread too (by answering!) but I'm not getting any replies, so here goes: 我也问过那个帖子(通过回答!)但是我没有得到任何回复,所以这里有:

I have been trying to install matplotlib, but I first need to install numpy. 我一直在尝试安装matplotlib,但我首先需要安装numpy。 I downloaded the file numpy-1.8.2+mkl-cp26-none-win_amd64.whl, then tried to install it using pip. 我下载了文件numpy-1.8.2 + mkl-cp26-none-win_amd64.whl,然后尝试使用pip安装它。 The error message I keep getting is: 我一直得到的错误信息是:

"numpy-1.8.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platform". “numpy-1.8.2 + mkl-cp26-none-win_amd64.whl不是这个平台上支持的轮子”。 The solution suggested by the thread I referenced above, was to replace "_amd64" by "32", making the filename numpy-1.8.2+mkl-cp26-none-win32.whl. 我在上面引用的线程建议的解决方案是将“_amd64”替换为“32”,使文件名为numpy-1.8.2 + mkl-cp26-none-win32.whl。 This did not work either, and I get exactly the same error as above. 这也不起作用,我得到与上面完全相同的错误。

Any suggestions? 有什么建议?

I use Python 3.4.2 64-bit on Windows 7 64-bit. 我在Windows 7 64位上使用64位64位Python。

The "cp26" in that filename means "CPython 2.6". 该文件名中的“cp26”表示“CPython 2.6”。 If you're using Python 3.4 you'll need a file that has "cp34" in the filename. 如果您使用的是Python 3.4,则需要一个文件名中包含“cp34”的文件。

尝试使用此处的安装程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM