社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Python

ubuntu安装pycurl

灵魂码者 • 10 年前 • 7866 次点击  

安装 pycurl

https://pypi.python.org/pypi/pycurl

https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.5.tar.gz#md5=47b4eac84118e2606658122104e62072

python setup.py install 时发现错误:

Running setup.py egg_info for package pycurl
    sh: curl-config: not found
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/eric/env/build/pycurl/setup.py", line 90, in <module>
        raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)
    Exception: `curl-config' not found -- please install the libcurl development files
    Complete output from command python setup.py egg_info:
    sh: curl-config: not found

Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/eric/env/build/pycurl/setup.py", line 90, in <module>

    raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)

Exception: `curl-config' not found -- please install the libcurl development files

查询依赖

(env)~/env apt-cache depends python-pycurl   
python-pycurl
  Depends: libc6
  Depends: libcurl3-gnutls
  Depends: libgcrypt11
  Depends: libgnutls26
  Depends: libgssapi-krb5-2
  Depends: libidn11
  Depends: libldap-2.4-2
  Depends: zlib1g
  Depends: python
  Depends: python
  Depends: python-support
  Suggests: libcurl4-gnutls-dev
  Suggests: python-pycurl-dbg
  Conflicts: <python2.3-pycurl>
  Conflicts: <python2.4-pycurl>
  Replaces: <python2.3-pycurl>
  Replaces: <python2.4-pycurl>

安装 libcurl4-gnutls-dev

sudo apt-get install libcurl4-gnutls-dev

重新安装 pycurl

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/584
 
7866 次点击  
文章 [ 1 ]  |  最新文章 10 年前
Py站长
Reply   •   1 楼
Py站长    10 年前

感谢分享~~