当我尝试在python中导入M2Crypto时,出现以下错误:
我使用的是Mac OS X,python 2.7
ImportError: dlopen(/Users/armita/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.9-intel.egg-tmp/M2Crypto/__m2crypto.so, 2): Symbol not found: _X509_free
Referenced from: /Users/armita/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.9-intel.egg-tmp/M2Crypto/__m2crypto.so
Expected in: flat namespace
in /Users/armita/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.9-intel.egg-tmp/M2Crypto/__m2crypto.so
我该怎么办?
答案 0 :(得分:0)
答案 1 :(得分:0)
通过安装M2Crypto版本21或23解决了这个问题,22导致了这个问题。