我在OS X 10.9上通过pycurl
安装了pip
。当我用import pycurl
运行python文件时,python告诉我下一个错误:
导入错误: dlopen的(/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pycurl.so, 2):找不到符号:_PyFile_AsFile引用自: /usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pycurl.so 预计在:平面命名空间中 /usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pycurl.so
UPD:python3
通过brew