[已解决]python scrapy库安装过程提示错误 Running setup.py install for Twisted ... error

来源:互联网 发布:ubuntu 开机自启动命令 编辑:程序博客网 时间:2024/05/16 01:51

编写爬虫需要安装scrapy库
win+r打开命令提示符,具体的安装语言为,

pip install scrapy

在安装的过程中提示的错误为

 Running setup.py install for Twisted ... errorException:Traceback (most recent call last):  File "d:\python\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str

具体解决方法为:
在官网下载具体的Twisted文件,然后进行安装
点击下载Twisted
下载下来后放在你的python安装目录下的scripts目录下
这里写图片描述
在命令提示符中输入

pip3.6 install D:\Python\Scripts\Twisted-17.1.0-cp36-cp36m-win_amd64.whl

根据自己的路径决定,,,
更多的问题可以参考这篇文章
点击跳转

检验scrapy安装成功的命令

scrapy -h

成功

0 0
原创粉丝点击