Linux下遇到PyCurl的错误解决方法
程序员文章站
2022-12-07 13:09:54
could not run curl-config 的解决方式downloading/unpacking pycurl (from pyspider) downloading pycurl-7.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/pycurl storing 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的错误总结的资料请关注其它相关文章!
上一篇: 浅谈手机浏览器的用户运营
下一篇: 如何让按钮提升用户的积极性
推荐阅读
-
PHP下打开phpMyAdmin出现403错误的问题解决方法
-
浅析Dos下运行php.exe,出现没有找到php_mbstring.dll 错误的解决方法
-
ubuntu16.04下安装openssh-server报依赖错误的完美解决方法(非常不错)
-
Linux环境下VI/VIM编辑文件时无权限保存的解决方法(普通用户)
-
Linux下php-cgi占内存100%电脑变的很卡的解决方法
-
Linux系统下Tomcat8启动速度很慢的解决方法
-
Linux中出现“No space left on device”错误的排查与解决方法
-
linux下scp远程拷贝包含空格的目录或者文件的解决方法
-
Linux下MP3的TAG乱码问题解决方法
-
Win7系统遇到werfault.exe应用程序错误的解决方法介绍