AttributeError: module ‘ssl‘ has no attribute ‘SSLSocket‘或者OpenSSL SSL_read: Connection was rese

AttributeError: module 'ssl' has no attribute 'SSLSocke

问题;

  • SSL模块存在,包存在,也能够引入,但是python安装包时一直在报SSL错。
  • 在运行相关代码时,也显示SSL不存在相关语法操作。
  • AttributeError: module ‘ssl’ has no attribute ‘SSLSocket’:
  • 在python安装包时报错:

在这里插入图片描述

原因

  • 检查一遍python环境有没有存在问题,同事i的电脑可以实现,环境拷贝过来,自己的电脑依旧不行,PYTHON环境排除;
  • GIT安装包中验证的问题

解决办法:

  • 1、桌面右键:
    在这里插入图片描述
  • 2、输入命令:
git config --global http.sslVerify "false"

在这里插入图片描述

结:

重新再进行相关操作,SSL不再报错。

猜你喜欢

转载自blog.csdn.net/qq_38978225/article/details/128716398