本文介绍了“无法运行curl-config:[Errno 2]没有这样的文件或目录"在安装pycurl时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过以下方式安装pycurl:
I'm trying to install pycurl via:
sudo pip install pycurl
它下载得很好,但是当它运行setup.py时,我得到以下回溯:
It downloaded fine, but when when it runs setup.py I get the following traceback:
Downloading/unpacking pycurl
Running setup.py egg_info for package pycurl
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/pycurl/setup.py", line 563, in <module>
ext = get_extension()
File "/tmp/pip-build-root/pycurl/setup.py", line 368, in get_extension
ext_config = ExtensionConfiguration()
File "/tmp/pip-build-root/pycurl/setup.py", line 65, in __init__
self.configure()
File "/tmp/pip-build-root/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 16, in <module>
File "/tmp/pip-build-root/pycurl/setup.py", line 563, in <module>
ext = get_extension()
File "/tmp/pip-build-root/pycurl/setup.py", line 368, in get_extension
ext_config = ExtensionConfiguration()
File "/tmp/pip-build-root/pycurl/setup.py", line 65, in __init__
self.configure()
File "/tmp/pip-build-root/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
知道为什么会发生这种情况以及如何解决它
Any idea why this is happening and how to get around it
推荐答案
在Debian上,我需要以下软件包来解决此问题
On Debian I needed the following packages to fix this
sudo apt install libcurl4-openssl-dev libssl-dev
这篇关于“无法运行curl-config:[Errno 2]没有这样的文件或目录"在安装pycurl时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!