启动Scrapy项目时出错

时间:2015-01-01 02:40:41

标签: python web-scraping scrapy scrapy-spider

当我尝试开始scrapy时,我收到此错误。为什么会出现?

  

$ scrapy startproject教程   Traceback(最近一次调用最后一次):   文件“/ Applications / anaconda / bin / scrapy”,第5行,来自   pkg_resources import load_entry_point文件   “/Applications/anaconda/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg/pkg_resources.py”   第2697行,在文件中   “/Applications/anaconda/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg/pkg_resources.py”   第669行,在require文件中   “/Applications/anaconda/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg/pkg_resources.py”   第572行,解析pkg_resources.DistributionNotFound:   密码学> = 0.2.1 $

1 个答案:

答案 0 :(得分:1)

Scrapy has pyOpenSSL package as a dependencyrequires cryptography module to be installed。要么从头开始重新安装scrapy:

pip uninstall Scrapy
pip install Scrapy

或者,单独安装cryptography模块:

pip install cryptography