Centos安装pycurl
时间:2015-08-03 12:12 来源:linux.it.net.cn 作者:IT
# wget http://curl.haxx.se/download/curl-7.36.0.tar.gz
# tar -zxvf curl-7.36.0.tar.gz
# cd curl-7.36.0
# ./configure
# make && make install
# export LD_LIBRARY_PATH=/usr/local/lib
# wget https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz
--no-check-certificate
# tar -zxvf pycurl-7.19.3.1.tar.gz
# cd pycurl-7.19.3.1
# python setup.py install --curl-config=/usr/local/bin/curl-config
>>>
import
pycurl
>>> pycurl.version
'PycURL/7.19.3.1 libcurl/7.36.0 OpenSSL/1.0.1e zlib/1.2.3'
>>>
import
pycurl
Traceback (most recent call last):
File
"<stdin>"
, line 1,
in
<module>
ImportError: pycurl: libcurl link-
time
version (7.19.7) is older than compile-
time
version (7.36.0)
执行以下,即可
# export LD_LIBRARY_PATH=/usr/local/lib
(责任编辑:IT)
|