Traceback (most recent call last):
File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 234, in configure_unix
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'curl-config': 'curl-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 961, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 623, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 101, in __init__
self.configure()
File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 238, in configure_unix
raise ConfigurationError(msg)
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config': 'curl-config'
答案1
它告诉你它无法运行curl-config
这通常意味着您缺少一个包裹。
因此您可以使用这个网站 https://packages.ubuntu.com/
并在路径末尾搜索 curl-config
您的结果肯定与此类似
https://packages.ubuntu.com/search?suite=eoan&arch=any&searchon=contents&keywords=curl-config
对于第二个错误,您缺少 C 编译器。
所以你需要安装build-essential