V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
itlynn
V2EX  ›  Python

求助下 Ubuntu 15.10(64 位)下安装 pyspider 下的问题

  •  
  •   itlynn · 2016-05-18 00:48:25 +08:00 · 3273 次点击
    这是一个创建于 2907 天前的主题,其中的信息可能已经有所发展或是发生改变。

    环境: Ubuntu 15.10(64 位) pip install pyspider 出现如下错误(部分):

    Using curl-config (libcurl 7.43.0)
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/curl
    copying python/curl/__init__.py -> build/lib.linux-x86_64-2.7/curl
    running build_ext
    building 'pycurl' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPYCURL_VERSION="7.43.0" -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/include/python2.7 -c src/docstrings.c -o build/temp.linux-x86_64-2.7/src/docstrings.o
    In file included from src/docstrings.c:4:0:
    src/pycurl.h:170:31: fatal error: openssl/crypto.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    

    Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-TXbOqA/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-HNEDNr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-TXbOqA/pycurl/

    python-dev 已安装。 求助下万能的 V 友,谢谢!

    3 条回复    2016-05-18 10:28:55 +08:00
    binux
        1
    binux  
       2016-05-18 05:37:04 +08:00
    ayaseangle
        2
    ayaseangle  
       2016-05-18 07:45:08 +08:00
    fatal error: openssl/crypto.h: No such file or directory

    大概 openssl-dev 之类的缺失。。。。

    这么明显的错误信息还要问?


    话说有时候就算遇到笔记陌生的错误信息,扔到 google 里多数都能找到解决方案。。。
    itlynn
        3
    itlynn  
    OP
       2016-05-18 10:28:55 +08:00
    感谢,已解决!
    sudo apt install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   803 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.