我有一个Mac OS(El Capitan 10.11.3),我试图为Python 2.6.9安装pycurl库。不幸的是,当我尝试:在Mac OS上为Python 2.6安装pycurl
easy_install pycurl
我:
Searching for pycurl
Best match: pycurl 7.19.5.3
Processing pycurl-7.19.5.3-py2.7-macosx-10.11-intel.egg
pycurl 7.19.5.3 is already the active version in easy-install.pth
但它就是Python 2.7 - 2.6没有。
在bash检查当前的Python版本:
python -V
Python 2.6.9
我也试图手动安装(下载的.tar和安装)
sudo python setup.py install
输出:
Using curl-config (libcurl 7.43.0)
running install
running build
running build_py
running build_ext
running install_lib
running install_data
creating /System/Library/Frameworks/Python.framework/Versions/2.7/share
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/share': Operation not permitted
同用于:
make PYTHON=python2.6
你有什么想法如何使它安装Python 2.6的pycurl?
问题是什么?它已经安装。 ** pycurl 7.19.5.3已经是活动版本** –
它是Python 2.7的问题,而不是2.6。 Python 2.6仍然没有看到pycurl – Konrad
你怎么知道这一点?你的'python -V'显示版本2.6 –