pip install pycurl "Error: Could not run curl-config: [Errno 2] No such file or directory"

Collecting pycurl
  Using cached pycurl-7.43.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ZlR9qa/pycurl/setup.py", line 823, in <module>
        ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-build-ZlR9qa/pycurl/setup.py", line 497, in get_extension
        ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-build-ZlR9qa/pycurl/setup.py", line 71, in __init__
        self.configure()
      File "/tmp/pip-build-ZlR9qa/pycurl/setup.py", line 107, in configure_unix
        raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ZlR9qa/pycurl/

系統版本 Ubuntu14.04 ; python 版本 2.7.6python

解決方法: bash

sudo apt-get install libcurl4-openssl-dev
相關文章
相關標籤/搜索