scrapy遇到的問題及解決方法

問題一:

[root@iZ251bgaex6Z dianle]# scrapy crawl  fanli

Traceback (most recent call last):

  File "/usr/bin/scrapy", line 4, in <module>

    import pkg_resources

  File "/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in <module>

    if item==nloc:

  File "/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require

    unloadable plugin distributions to an exception instance describing the

  File "/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve

    On exit from this routine, `entry` is added to the end of the working

pkg_resources.DistributionNotFound: queuelib

解決方法:

   pip  install --upgrade setuptools

原因分析:

  setuptools自身的缺陷,通過upgrade來更新一下 setuptools至最新版本即可;

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
閱讀(1888) | 評論(0) | 轉發(0) |
給主人留下些什麼吧!~~
評論熱議
發佈了194 篇原創文章 · 獲贊 57 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章