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.

在下面這兩個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())


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM