不积跬步,无以至千里;不积小流,无以成江海。

Dean's blog

  • Join Us on Facebook!
  • Follow Us on Twitter!
  • LinkedIn
  • Subcribe to Our RSS Feed

手动安装 Scrapy

之前安装Scrapy的时候,都是使用工具来安装,这样解决包依赖的问题比较方便,但是最近在使用工具安装Scrapy却一直安装不了,后来在网上找到手工安装的过程,记录如下:

1.安装lxml:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple lxml

2.安装 pyOpenSSL:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyOpenSSL

3.安装Twisted:

到该网站下载自己python版本对应的whl包http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted,然后安装要绝对位置

pip install D:\myspider\Twisted-18.9.0-cp36-cp36m-win_amd64.whl

4.安装scrapy:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scrapy

按照以上步骤即可安装完毕。

出处:https://www.cnblogs.com/cxl07325/p/10843897.html

不允许评论
粤ICP备17049187号-1