安装Twisted时报错解决

报错为is not a supported wheel on this platform
解决方法
下载对应配置文件,如:Twisted‑18.7.0‑cp36‑cp36m‑win_amd64.whl(其中cp后面代表python版本,win_amd64代表64位)
 
2.在python中运行
import pip
print(pip.pep425tags.get_supported())

得到

[('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none', '
any'), ('cp3', 'none', 'any'), ('cp34', 'none', 'any'), ('cp33', 'none', 'any'),
('cp32', 'none', 'any'), ('cp31', 'none', 'any'), ('cp30', 'none', 'any'), ('py
35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', '
none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none'
, 'any')]

3.

按照上面提示修改对应文件名,如:
Twisted‑18.7.0‑cp36‑cp36m‑win_amd64.whl
修改为↓↓↓↓↓↓↓↓↓
Twisted‑18.7.0‑cp36‑none‑any.whl
cmd运行
pip install E:\Twisted‑18.7.0‑cp36‑none‑any.whl
安装成功

posted on 2018-08-07 16:37  蜗牛bt  阅读(1981)  评论(0编辑  收藏  举报

导航