【问题标题】:Error attempting to install scrapy using easy_install osx 10.8尝试使用 easy_install osx 10.8 安装 scrapy 时出错
【发布时间】:2012-10-03 22:09:18
【问题描述】:

(这里是新手)我一直在尝试使用 easy_install 安装scrapy,但出现以下错误:

    Ben$ easy_install -U Scrapy
    Searching for Scrapy
    Reading http://pypi.python.org/simple/Scrapy/
    Reading http://scrapy.org
    Best match: Scrapy 0.14.4
    Processing Scrapy-0.14.4-py2.7.egg
    Scrapy 0.14.4 is already the active version in easy-install.pth
    Installing scrapy script to /Library/Frameworks/Python.framework/Versions/2.7/bin

    Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Scrapy-0.14.4-py2.7.egg
    Processing dependencies for Scrapy
    Searching for lxml
    Reading http://pypi.python.org/simple/lxml/
    Reading http://codespeak.net/lxml
    Best match: lxml 2.3.6
    Downloading http://lxml.de/files/lxml-2.3.6.tgz
    Processing lxml-2.3.6.tgz
    Running lxml-2.3.6/setup.py -q bdist_egg --dist-dir /var/folders/j1/l3w7_q554b3fkk3xyw_998nc0000gn/T/easy_install-w5NqEl/lxml-2.3.6/egg-dist-tmp-6MyEeO
    Building lxml version 2.3.6.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    unable to execute gcc-4.0: No such file or directory
    error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1

知道我在这里缺少什么吗?

谢谢

【问题讨论】:

    标签: scrapy osx-mountain-lion easy-install


    【解决方案1】:

    先安装GCC;最简单的方法是通过 https://github.com/kennethreitz/osx-gcc-installer 。 安装 GCC 后,再次运行 easy_install。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-23
      • 2013-04-04
      • 2014-08-21
      • 1970-01-01
      • 1970-01-01
      • 2013-03-07
      • 1970-01-01
      相关资源
      最近更新 更多