NumPy 64bit 无法在带有 Python 64bit 的 Windows 上使用 pip 安装 [英] NumPy 64bit fail to install with pip on Windows with Python 64bit
问题描述
pip install "c: emp
umpy-1.10.4+mkl-cp35-cp35m-wi
n_amd64.whl"
返回以下错误:
numpy-1.10.4+mkl-cp35-cp35m-win_amd64.whl 不支持此平台.
操作系统:Windows 7 专业版 64 位
点子版本: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 wheel file: numpy-1.10.4+mkl-cp35-cp35m-win_amd64.whl
from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
所以,我认为所有版本都是一致的.还是 Python 3.5.1 对于 cp35 来说太新了?
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屋!