时间:2021-05-19
Could not run curl-config 的解决方式
Downloading/unpacking pycurl (from pyspider) Downloading pycurl-7.19.5.1.tar.gz (142kB): 142kB downloaded Running setup.py (path:/tmp/pip-build-DuBGJ5/pycurl/setup.py) egg_info for package pycurl Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip-build-DuBGJ5/pycurl/setup.py", line 634, in <module> ext = get_extension(split_extension_source=split_extension_source) File "/tmp/pip-build-DuBGJ5/pycurl/setup.py", line 392, in get_extension ext_config = ExtensionConfiguration() File "/tmp/pip-build-DuBGJ5/pycurl/setup.py", line 65, in __init__ self.configure() File "/tmp/pip-build-DuBGJ5/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/pip-build-DuBGJ5/pycurl/setup.py", line 634, in <module> ext = get_extension(split_extension_source=split_extension_source) File "/tmp/pip-build-DuBGJ5/pycurl/setup.py", line 392, in get_extension ext_config = ExtensionConfiguration() File "/tmp/pip-build-DuBGJ5/pycurl/setup.py", line 65, in __init__ self.configure() File "/tmp/pip-build-DuBGJ5/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/pip-build-DuBGJ5/pycurlStoring debug log for failure in /root/.pip/pip.log在安装 pyspider 的时候我就遇到了这个问题, pyspider 依赖 pycurl 这个库,而 pycurl 要求系统中存在相对应的库。
经过我的测试, curl 是正确安装了的,但是却依然提示了找不到 curl-config 的问题
解决方案:
apt-get install libcurl4-gnutls-dev运行安装后即可正常安装 pycurl 。
以上就是Linux下遇到PyCurl的错误解决方法的详细内容,更多关于Linux下遇到PyCurl的错误总结的资料请关注其它相关文章!
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
1604错误最终解决方法(iTunesiPhone1604错误解决方法) 出现该问题后将IPHONE关机(POWER+HOME关机),把ITUNES关掉,
错误提示:无法从控制socket读取。socket错误=#10054解决方法:linux下的serviceiptablesstoplinux下的servicev
wp8.1gdr1升级失败/错误解决方法大家可以来了解一下,微软官方已经着手解决wp8.1gdr1预览版升级错误的故障,如果你遇到了同样的问题就请参考下文吧
iphone5s未知错误3194怎么办?下文将告诉大家苹果5s发生未知错误解决方法,有果粉在使用itunes恢复固件时遇到了未知错误3194的提示,该如何解
错误1:wizard安装最后一页,出现cannotcreateWindowsserviceformysql.error:0错误解决方法:打开命令行输入scdel