当我尝试开始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 $
答案 0 :(得分:1)
Scrapy
has pyOpenSSL
package as a dependency,requires cryptography
module to be installed。要么从头开始重新安装scrapy:
pip uninstall Scrapy
pip install Scrapy
或者,单独安装cryptography
模块:
pip install cryptography