python ----Linux上安裝scrapy

在安裝scrapy以前首先得確保你已經安裝了python 以及pippython

1,安裝scrapyscrapy

pip install scrapy

若是報錯:Could not find a version that satisfies the requirement Twisted>=13.1.0 (from Scrapy) (from versions: )
No matching distribution found for Twisted>=13.1.0 (from Scrapy)ui

緣由是沒有安裝Twisted.net

2,安裝Twisted。blog

wget https://pypi.python.org/packages/source/T/Twisted/Twisted-15.2.1.tar.bz2 --no-check-certificate
tar -xjvf Twisted-15.2.1.tar.bz2
cd Twisted-15.2.1
python setup.py install

  成功。ip

參考連接:http://blog.csdn.net/snowpay/article/details/64919647rem

相關文章
相關標籤/搜索