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安装包时报错:

AttributeError: module ‘ssl‘ has no attribute ‘SSLSocket‘或者OpenSSL SSL_read: Connection was rese_第1张图片

原因

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

解决办法:

  • 1、桌面右键:
    AttributeError: module ‘ssl‘ has no attribute ‘SSLSocket‘或者OpenSSL SSL_read: Connection was rese_第2张图片
  • 2、输入命令:
git config --global http.sslVerify "false"

AttributeError: module ‘ssl‘ has no attribute ‘SSLSocket‘或者OpenSSL SSL_read: Connection was rese_第3张图片

结:

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

你可能感兴趣的:(图像处理,视觉CV,python)