当我尝试用sudo easy_install -U Scrapy命令在ubuntu13.04上安装Scrapy时,我得到了以下错误:
Searching for Scrapy
Reading pypi.python.org/simple/Scrapy/
Best match: Scrapy 0.16.5
Processing Scrapy-0.16.5-py2.7.egg
Scrapy 0.16.5 is already the active version in easy-install.pth
Installing scrapy script to /usr/local/bin
Using /usr/local/lib/python2.7/dist-packages/Scrapy-0.16.5-py2.7.egg
Processing dependencies for Scrapy
Searching for Twisted>=8.0
Reading pypi.python.org/simple/Twisted/
Best match: Twisted 13.1.0
Downloading pypi.python.org/packages/source/T/Twisted/Twisted-13.1.0.tar.bz2#md5=5609c91ed465f5a7da48d30a0e7b6960
Processing Twisted-13.1.0.tar.bz2
Writing /tmp/easy_install-xYafJF/Twisted-13.1.0/setup.cfg
Running Twisted-13.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-xYafJF/Twisted-13.1.0/egg-dist-tmp-ybetxt
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1我也尝试了pip install Scrapy命令,但再次得到相同的错误x86_64-linux-gnu-gcc
你能帮我在Ubuntu 13.04上安装Scrapy吗?
发布于 2013-07-12 17:27:34
为了安装scrapy,你需要先安装python dev。
发布于 2014-03-11 14:26:14
对我来说,我已经安装了python dev,但仍然无法工作(在尝试安装加密技术时失败),并且我发现this堆栈溢出post告诉我要运行此命令以确保所有依赖项都已安装
sudo apt-get install build-essential libssl-dev libffi-dev python-dev libxml2-dev
这对我很管用
发布于 2015-02-27 20:05:52
使用这个命令:sudo apt-get install libssl-dev
在安装scrapy之前。然后
sudo pip install scrapy --force --upgrade
https://stackoverflow.com/questions/17611324
复制相似问题