官方安裝文檔:http://doc.scrapy.org/en/1.1/intro/install.html
- 安裝Python
官網(wǎng)
https://www.python.org/downloads/
選擇想要的版本下載安裝
然后在cmd pip install scrapy
呆瞻,出現(xiàn)報錯棉饶。 少了Twisted荧恍,于是安裝Twisted
- 安裝Twisted
下載Twisted (按版本下載:http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)
安裝
pip install [文件名]
查看是否安裝成功
python
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import twisted
>>>
到這里Twisted已經(jīng)安裝成功了介时,繼續(xù)安裝Scrapy。
- 安裝Scrapy
pip install scrapy
中間會安裝一堆第三方包桩引,最后提示這個就是安裝成功了
Installing collected packages: scrapy
Successfully installed scrapy-1.4.0
僅供參考,Windows安裝Scrapy 還是很方便的