m2crypto库导入问题?
导入m2crypto出现如下问题,请问怎么解决?
File "/opt/Empire/lib/common/encryption.py", line 26, in <module>
import M2Crypto
File "/usr/local/lib/python2.7/dist-packages/M2Crypto/__init__.py", line 26, in <module>
from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
File "/usr/local/lib/python2.7/dist-packages/M2Crypto/ASN1.py", line 15, in <module>
from M2Crypto import BIO, m2, util
File "/usr/local/lib/python2.7/dist-packages/M2Crypto/BIO.py", line 10, in <module>
from M2Crypto import m2, six, util
File "/usr/local/lib/python2.7/dist-packages/M2Crypto/m2.py", line 30, in <module>
from M2Crypto.m2crypto import *
File "/usr/local/lib/python2.7/dist-packages/M2Crypto/m2crypto.py", line 26, in <module>
_m2crypto = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/M2Crypto/m2crypto.py", line 22, in swig_import_helper
_mod = imp.load_module('_m2crypto', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto/_m2crypto.so: undefined symbol: sslv3_method
m2crypto版本是0.27.0,系统是Debian8,OpenSSL版本是1.1.0g
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Debian:
pip uninstall M2crypto
apt install python-m2crypto -y