您的位置:首页 > 其它

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

2015-04-27 18:34 766 查看

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.

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

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

http://stackoverflow.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())
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐