python 3.6 安装 Twisted 错误与解决

python 3.6 安装 Twisted 错误与解决

当我pip install scrapy过程中发现Twisted报错。

于是我尝试pip install twisted单独安装Twisted, 依然是报错。

后来发现原来是twisted和高版本的python有兼容性问题。

那么怎么结局呢?

我发现了Python扩展包的非官方Windows二进制文件里有:

Twisted, an event-driven networking engine.

Twisted‑17.9.0‑cp27‑cp27m‑win32.whl
Twisted‑17.9.0‑cp27‑cp27m‑win_amd64.whl
Twisted‑17.9.0‑cp34‑cp34m‑win32.whl
Twisted‑17.9.0‑cp34‑cp34m‑win_amd64.whl
Twisted‑17.9.0‑cp35‑cp35m‑win32.whl
Twisted‑17.9.0‑cp35‑cp35m‑win_amd64.whl
Twisted‑17.9.0‑cp36‑cp36m‑win32.whl
Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

赶紧的,到https://www.lfd.uci.edu/~gohlke/pythonlibs/下载了Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

执行:

pip install  Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

依然错误了。报错显示说,我的平台不能运行这个。

于是我下载另一个版本Twisted‑17.9.0‑cp36‑cp36m‑win32.whl

执行:

pip install  Twisted‑17.9.0‑cp36‑cp36m‑win32.whl

成功了!

E:\sundry>pip install Twisted-17.9.0-cp36-cp36m-win32.whl
Processing e:\sundry\twisted-17.9.0-cp36-cp36m-win32.whl
Requirement already satisfied: Automat>=0.3.0 in e:\program files\python\python36-32\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: constantly>=15.1 in e:\program files\python\python36-32\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: hyperlink>=17.1.1 in e:\program files\python\python36-32\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: zope.interface>=4.0.2 in e:\program files\python\python36-32\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: incremental>=16.10.1 in e:\program files\python\python36-32\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: attrs in e:\program files\python\python36-32\lib\site-packages (from Automat>=0.3.0->Twisted==17.9.0)
Requirement already satisfied: six in e:\program files\python\python36-32\lib\site-packages (from Automat>=0.3.0->Twisted==17.9.0)
Requirement already satisfied: setuptools in e:\program files\python\python36-32\lib\site-packages (from zope.interface>=4.0.2->Twisted==17.9.0)
Installing collected packages: Twisted
Successfully installed Twisted-17.9.0

Successfully installed Twisted-17.9.0

如果在运行的过程中,需要pywin32, 可以使用下面命令安装:pip install pypiwin32

参考文章

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值