NumPy 64bit无法在具有Python 64bit的Windows上通过pip安装 [英] NumPy 64bit fail to install with pip on Windows with Python 64bit
问题描述
pip install "c:\temp\numpy-1.10.4+mkl-cp35-cp35m-wi
n_amd64.whl"
返回以下错误:
numpy-1.10.4 + mkl-cp35-cp35m-win_amd64.whl在此平台上不受支持.
操作系统:Windows 7 pro 64bit
点子版本:8.1.0
Python: 3.5.1 64位
OS: Windows 7 pro 64bit
pip version: 8.1.0
Python: 3.5.1 64bit
NumPy轮文件:numpy-1.10.4 + mkl- cp35 -cp35m-win_amd64.whl
来自 http://www.lfd.uci.edu/~gohlke/pythonlibs/# numpy
NumPy wheel file: numpy-1.10.4+mkl-cp35-cp35m-win_amd64.whl
from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
所以,我认为所有版本都是一致的. 还是对于cp35而言,Python 3.5.1太新了?
So, all the version are aligned I think. Or Python 3.5.1 is too new for cp35?
注意.在与Windows 10完全相同版本的另一台PC上,它可以正常工作.
Note. On another PC with exactly the same versions but Windows 10 it works.
谢谢,
亚历山德罗
Thanks,
Alessandro
推荐答案
我查看了pip的req_install.py和wheel.py文件(位于[python路径]/lib/site-packages/pip中),完成了车轮的检查. 它将文件名拆分成一个标签",以便与支持的标签进行比较.
I looked into req_install.py and wheel.py files of pip (in [python path]/lib/site-packages/pip) and I found where is done the check of the wheel. It split the file name to obtain "tags" from it for comparison with supported tags.
我删除了环境变量"PLATFORM"(另一台计算机中不存在),然后它起作用了.
I removed the environment variable "PLATFORM" (it is not present in the other machine) and then it worked.
这篇关于NumPy 64bit无法在具有Python 64bit的Windows上通过pip安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!