【发布时间】:2014-02-24 13:45:26
【问题描述】:
只是一些信息开始:
- 我正在运行 Mac OS 10.7.5
- 我安装了 curl 7.21.4(我相信附带了开发工具)
- 我有 python 2.7.1
我一直在尝试安装 pycurl,但每次尝试运行它时,都会得到:
ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)
我首先使用 setup 安装了 pycurl:
python setup.py install
这不起作用(因为没有配置 SSL)。
在尝试之前我已经卸载了 pycurl (sudo rm -rf /Library/Python/2.7/site-packages/pycurl*):
export PYCURL_SSL_LIBRARY=openssl
easy-install pycurl
在尝试之前再次:
python setup.py --with-ssl install
但是,我仍然收到与未编译 ssl 相同的错误。好像所有指令都忽略了我的尝试。
setup.py 在安装时完全没有抱怨,但在我设置 PYCURL_SSL_LIBRARY 环境变量后,easy install 会打印此消息:
src/pycurl.c:151:4: warning: #warning "libcurl was compiled with SSL support, but configure could not determine which " "library was used; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests"
这似乎表明它完全忽略了我刚刚告诉它使用 openssl 安装的事实......
我在设置中缺少什么吗?
【问题讨论】:
标签: python easy-install pycurl