当前位置: 首页 > linux, 系统 > 正文

解决 AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’

有台机器好久未登录了,今天执行pip的时候报错如下:AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’,鼓捣了半天终于搞定。

环境: python2.7
网上搜索了下,应该是pyOpenSSL模块的问题,因为pip执行报错,需要先删除这个模块,重新安装即可,具体操作如下:

pip重新安装pyopenssl时又报错

解决办法:

再次安装pyopenssl,这次成功了。

本文固定链接: https://www.sudops.com/resolve-attributeerror-module-object-no-attribute-ssl_st_init.html | 运维·速度

该日志由 Fisher 于2018年09月19日发表在 linux, 系统 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: 解决 AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’ | 运维·速度
关键字:

解决 AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’:等您坐沙发呢!

发表评论


Time limit is exhausted. Please reload the CAPTCHA.

快捷键:Ctrl+Enter