whl is not a supported wheel on this platform

泄露秘密 提交于 2019-11-27 19:27:07

问题


I am new to python, and am trying to install some modules/packages using .whl file. The system does not have access to the internet so everything is local.

  • I'm running RHEL 6.9 64bit 2.6.32-696.10.1.el6.x86_64
  • Python is version 2.7.12 (altinstalled with 2.6)

  • platform.architecture() ('64bit', 'ELF')

  • I'm running pip 9.0.1

Attempt at installing numpy:

# /usr/local/bin/pip2.7 install numpy-1.13.3-cp27-cp27m-manylinux1_x86_64.whl
numpy-1.13.3-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.

So what am I missing?


回答1:


cp27-cp27m manylinux packages are compatible with a Python interpreter compiled with --enable-unicode=ucs2.

For an interpreter compiled with --enable-unicode=ucs4, you instead need cp27-cp27mu packages.



来源:https://stackoverflow.com/questions/46817359/whl-is-not-a-supported-wheel-on-this-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!