Python3导入错误与pycurl Mac OS X
我已经在OS X 10.9上通过pip
安装了pycurl
。 当我运行python文件import pycurl
python告诉我下一个错误:
ImportError: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:通过brew
安装python3