Could not run curl-config 的解決方式

網(wǎng)上找到的答案一般是需要再裝一個安裝包,但libcurl4-gnutls-dev或libcurl4-openssl-dev都不適用于我的CentOS 6。

我的情況是:

$ yum search curl
Loaded plugins: security
======================================== N/S Matched: curl =========================================
asterisk-curl.x86_64 : Modules for Asterisk that use cURL
curlftpfs.x86_64 : CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl
curlpp.i686 : A C++ wrapper for libcURL
curlpp.x86_64 : A C++ wrapper for libcURL
curlpp-devel.i686 : Development files for curlpp
curlpp-devel.x86_64 : Development files for curlpp
libcurl-devel.i686 : Files needed for building applications with libcurl
libcurl-devel.x86_64 : Files needed for building applications with libcurl
ocaml-curl.x86_64 : OCaml Curl library (ocurl)
ocaml-curl-devel.i686 : Development files for ocaml-curl
ocaml-curl-devel.x86_64 : Development files for ocaml-curl
perl-WWW-Curl.x86_64 : Perl extension interface for libcurl
php-pear-Net-Curl.noarch : OO interface to PHP's cURL extension
python-pycurl.x86_64 : A Python interface to libcurl
python34-pycurl.x86_64 : Python interface to libcurl for Python 3
uwsgi-alarm-curl.x86_64 : uWSGI - Curl alarm plugin
uwsgi-plugin-curl-cron.x86_64 : uWSGI - Plugin for CURL Cron support
curl.x86_64 : A utility for getting files from remote servers (FTP, HTTP, and others)
libcurl.i686 : A library for getting files from web servers
libcurl.x86_64 : A library for getting files from web servers
rubygem-curb.x86_64 : Ruby libcurl bindings
uwsgi-alarm-xmpp.x86_64 : uWSGI - Curl alarm plugin

  Name and summary matches only, use "search all" for everything.

直覺告訴我是需要這個libcurl-devel

于是裝之,然后就能夠pip install pycurl了。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容