Could not run curl-config: [Errno 2] No such file or directory

debian安装pycurl写爬虫的时候,

root@debian:/# pip install pycurl --upgrade
Downloading/unpacking pycurl from https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.5.1.tar.gz#md5=f44cd54256d7a643ab7b16e3f409b26b
  Downloading pycurl-7.19.5.1.tar.gz (142kB): 142kB downloaded
  Running setup.py (path:/tmp/user/0/pip-build-2adbEK/pycurl/setup.py) egg_info for package pycurl
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 634, in <module>
        ext = get_extension(split_extension_source=split_extension_source)
      File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 392, in get_extension
        ext_config = ExtensionConfiguration()
      File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 65, in __init__
        self.configure()
      File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 100, in configure_unix
        raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):


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


  File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 634, in <module>


    ext = get_extension(split_extension_source=split_extension_source)


  File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 392, in get_extension


    ext_config = ExtensionConfiguration()


  File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 65, in __init__


    self.configure()


  File "/tmp/user/0/pip-build-2adbEK/pycurl/setup.py", line 100, in configure_unix


    raise ConfigurationError(msg)


__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory


----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/user/0/pip-build-2adbEK/pycurl
Storing debug log for failure in /root/.pip/pip.log

重新安装以下的库

#apt-get install libcurl4-openssl-dev

centos

#yum install libcurl-devel
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页