pipenv虚拟环境安装package报错SSL (pip is configured with locations that require TLS/SSL,however the ssl ***)

报错信息:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available,however the ssl module in Python is not available.***

报错是因为每次下载需要验证SSL证书,快速的解决方法不去验证,额外(pipenv 老是导致SSL模块丢失,应该是bug)

  1. 打开虚拟环境所在的根目录, 有Pipfile文件如下:
    . pipenv虚拟环境安装package报错SSL (pip is configured with locations that require TLS/SSL,however the ssl ***)_第1张图片
  2. 打开Pipfile文件,修改为如下内容:(就是true改false,任意换个http源)
    pipenv虚拟环境安装package报错SSL (pip is configured with locations that require TLS/SSL,however the ssl ***)_第2张图片
阿里源:http://mirrors.aliyun.com/pypi/simple/
清华源: http://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(ssl,python,https)