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

AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

问题背景:

  下载工具wydomain,安装依赖包以后,出现下图问题。

  几经查找发现是pyopenssl库的问题。

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

解决方法:

  rm -rf /usr/lib/python2./dist-packages/OpenSSL
  rm -rf /usr/lib/python2./dist-packages/pyOpenSSL-0.15..egg-info
  sudo pip install pyopenssl

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

  验证恢复正常

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

上一篇:python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'(转)


下一篇:Excel导入功能