python2.7安裝numpy報錯:is not a supported wheel on...


python2.7安裝numpy時報錯信息以下:

C:\Python27\Scripts>pip install "numpy-1.9.2+mkl-cp26-none-win_amd64.whl"
numpy-1.9.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platfor
m.

錯誤緣由:

事實上是由於,個人python爲2.7版本,下載的numpy爲2.6版本,因此錯誤。python

解決方案:

參見:filename.whl is not supported wheel on this platformshell

下載和python對應版本的numpy安裝文件:

下載版本爲cp27的文件。python2.7

從新安裝運行:

C:\Python27\Scripts>pip install "numpy-1.9.2+mkl-cp26-none-win_amd64.whl"
numpy-1.9.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platfor
m.

C:\Python27\Scripts>pip install C:\python-tools\numpy-1.9.2+mkl-cp27-none-win_am
d64.whl
Processing c:\python-tools\numpy-1.9.2+mkl-cp27-none-win_amd64.whl
Installing collected packages: numpy
  Found existing installation: numpy 1.9.2
    Uninstalling numpy-1.9.2:
      Successfully uninstalled numpy-1.9.2
Successfully installed numpy-1.9.2

C:\Python27\Scripts>

成功安裝。this

在shell中驗證安裝成功否:

>>> from numpy import *
>>>
相關文章
相關標籤/搜索