scrapy引用包出错ImportError : cannot import name '_win32stdio'

今天决定开始折腾scrapy。
python 3.5 scrapy 1.1 win10
比照官方文档(英文1.2.4版本中文早期版本

在执行scrapy crawl quotes出现ImportError : cannot import name '_win32stdio',搜索SF找到解决方案,如下:

Scrapy can work with Python 3 on windows if you make some minor adjustments:
1.Copy the _win32stdio and _pollingfile to the appropriate directory under site-packages. Namely, twisted-dir\internet. Download these from https://github.com/twisted/twisted/tree/trunk/twisted/internet
2.pip install pypiwin32
Granted, this is based on my personal experience. Because the repository will certainly change in the future, readers should beware the age of this answer.
Update: the twisted-win package is no longer required because the appropriate files are now included in the twisted package.

我用了第一种方法就搞定了。感谢sf

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值