加入收藏 | 设为首页 | 会员中心 | 我要投稿 莱芜站长网 (https://www.0634zz.com/)- 云连接、建站、智能边缘云、设备管理、大数据!
当前位置: 首页 > 综合聚焦 > Ubuntu > 正文

ubuntu 搭建 pycurl

发布时间:2020-07-23 10:45:51 所属栏目:Ubuntu 来源:互联网
导读:问题: 在使用pip install pycurl是报curl_config no found错误 解决: sudo apt-get install libcurl4-gnutls-dev pip install pycurl 参考:http://www.voidcn.com/article/p-dbocqwgt-ed.html Python中国社区 Python ubuntu安装py


问题:

在使用pip install pycurl是报curl_config no found错误

解决:

sudo apt-get install libcurl4-gnutls-dev

pip install pycurl

参考:http://www.jb51.cc/article/p-dbocqwgt-ed.html

Python中国社区 Python

ubuntu安装pycurl

灵魂码者 2 年前 3162 次点击

安装 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>",in <module>

  File "/home/eric/env/build/pycurl/setup.py",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

参考:http://www.python88.com/topic/584/

参考https://www.baidu.com/s?wd=ubuntu%E6%90%AD%E5%BB%BA%20pycurl&f=12&rsp=0&oq=ubantu%E6%90%AD%E5%BB%BA%20pycurl&ie=utf-8&rsv_pq=cae2392c000117b2&rsv_t=287dlRiW6Eapq3YIxFYFQZIMVeAv4J6G9%2B6RrKVqnpGGmuhfX1qXi4%2Bzr1A&rqlang=cn

(编辑:莱芜站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读