安装scrapy时出错?

时间:2018-02-23 18:27:38

标签: python-3.x web-scraping scrapy pip

我使用的是python 3.6,当我尝试在cmd上使用pip安装scrapy时,输出如下所示:

     Command ""c:\program files\python36\python.exe" -u -c "import 
     setuptools, 
     tokenize;__file__='C:\\Users\\Sarah\\AppData\\Local\\Temp\\pip-build-
     hql11prt\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)
     (__file__);code=f.read().replace('\r\n', 
     '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
     C:\Users\Sarah\AppData\Local\Temp\pip-b2cmfpf2-record\install-
     record.txt --single-version-externally-managed --compile" failed with 
     error code 1 in C:\Users\Sarah\AppData\Local\Temp\pip-build-
     hql11prt\Twisted\

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

从以下网站下载Twisted并先安装,然后pip install scrapy

https://www.lfd.uci.edu/~gohlke/pythonlibs/