Linux下遇到PyCurl的錯誤解決方法

2022-09-26 13:33:12 字數 2069 閱讀 8083

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 "", line 17, in

file "/tmp/pip-build-dub", line 634, in

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 "", line 17, in

file "/tmp/pip-build-dubgj5/pycurl/setup.py", line 634, in

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/pigrtqkwtkqp-buil程式設計客棧d-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下安裝mod python遇到的問題

折騰了近一天,終於把mod python裝上了,現把遇到的問題以及解決方法記錄如下,以幫助遇到同樣問題的朋友。cd usr tmp mod python 3.3.1 安裝 configure with apxs usr local httpd bin apxs with python usr loc...

Linux下遇到的問題們

執行su模式失敗,顯示錯誤如下 su 密碼 su 認證失敗認證失敗,排除密碼輸入錯誤,找打如下方法 sudo passwd root 輸入新的 unix 密碼 重新輸入新的 unix 密碼 passwd 已成功更新密碼 zoe zoe lenovo home zoe desk su 密碼 root ...

linux下tensorflow遇到新的問題

今天和往常一樣開啟python import tensorflow時遇到莫名奇妙的問題 class treebuilderforhtml5lib html5lib.treebuilders.base.treebuilder attributeerror module object has no at...