whl文件 is not a supported wheel on this platform解決辦法

http://blog.csdn.net/xdygzsxg/article/details/53885786

可能的原因2:這個是我遇到的情況(下載的是對應版本的庫,然後仍然提示不支持當前平臺)

  我下載到的pillow庫文件名:

  使用pip安裝(在命令行中):

  報錯:***  is not a supported wheel on this platform,通過csdn上面一個帖子成功解決問題。

  方法:在cmd後中輸入import pip; print(pip.pep425tags.get_supported())可以獲取到pip支持的文件名還有版本,我這裏如下:

複製代碼

C:\>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
>>> print(pip.pep425tags.get_supported())
[('cp35', 'cp35m', 'win_amd64'), ('cp35', 'none', 'win_amd64'), ('py3', 'none',
'win_amd64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none',
'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any')
, ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
>>>

複製代碼

  通過這裏可以發現上面下載的文件名格式是不支持的,修改爲:Pillow-3.4.2-cp35-none-win_amd64.whl即可成功安裝。

  其它的庫也同理可以成功安裝,不過也請注意庫的依賴。

  (參考帖子網址:http://www.cnblogs.com/nice-forever/p/5371906.html


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章