python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
pyopenssl库的问题,删除包:

rm -rf /usr/lib/python2.7/dist-packages/OpenSSL
rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info # 包名可能不一样,用你自己的
pip install pyopenssl

再用pip install pkg正常了

posted on 2021-06-30 16:27  进击的davis  阅读(104)  评论(0编辑  收藏  举报

导航