scrapy和anaconda的问题

时间:2016-01-20 22:43:35

标签: python scrapy anaconda

我正在尝试安装scrapy并正常工作。我安装了anaconda,所以我从bash配置文件中删除了python 3.5的路径,但我仍然收到此错误。我的所有依赖项都是最新的,包括lxml,但是当我尝试在scrapy中启动项目时,我得到了这个。

Traceback (most recent call last):
  File "/usr/local/bin/scrapy", line 7, in <module>
    from scrapy.cmdline import execute
  File "/usr/local/lib/python2.7/site-packages/scrapy/__init__.py", line 48, in <module>
    from scrapy.spiders import Spider
  File "/usr/local/lib/python2.7/site-packages/scrapy/spiders/__init__.py", line 10, in <module>
    from scrapy.http import Request
  File "/usr/local/lib/python2.7/site-packages/scrapy/http/__init__.py", line 11, in <module>
    from scrapy.http.request.form import FormRequest
  File "/usr/local/lib/python2.7/site-packages/scrapy/http/request/form.py", line 9, in <module>
    import lxml.html
  File "/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py", line 54, in <module>
    from .. import etree
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/lxml/etree.so, 2):            Library not loaded: libxml2.2.dylib
  Referenced from: /usr/local/lib/python2.7/site-packages/lxml/etree.so
  Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

0 个答案:

没有答案