win7安装gevent时报错 whl is not a supported wheel on this platform.

时间:2023-03-09 01:51:16
win7安装gevent时报错 whl is not a supported wheel on this platform.

1.首先强烈推荐一个站点

在使用pip安装python协程包gevent时,需要很多依赖,很多需要编译的底层支持等等,不能拿来就用。总之很多麻烦的事儿。

这个强烈推荐一个站点,里面都是一些编译好的python包,十分方便。

http://www.lfd.uci.edu/~gohlke/pythonlibs/

2.whl is not a supported wheel on this platform.

我在该站点上下载了一个gevent-1.0.1-cp27-none-win32.whl包之后,运行

pip install gevent-1.0.1-cp27-none-win32.whl

报了一个这个错误:

gevent-1.0.1-cp27-none-win32.whl is not a supported wheel on this platform.

在下面这两个*的问题上知道了两个知识:

http://*.com/questions/28568070/filename-whl-is-not-supported-wheel-on-this-platform

http://*.com/questions/28107123/cannot-install-numpy-from-wheel-format

1. 上面包名中的 cp27代表的是 CPython 3.3,也就是在包名中明确了适合的版本。所以这里要根据自己的python版本安装合适的包。

2. 可以使用pip包里面提供的方法,查看pip 支持哪些平台、python版本的组合形式:

import pip; print(pip.pep425tags.get_supported())