python安装的时候报SSL连接错误的解决办法

来源:互联网 发布:如何优化医疗卫生服务 编辑:程序博客网 时间:2024/06/04 18:17
Collecting xlwt
  Could not fetch URL https://pypi.python.org/simple/xlwt/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) - skipping
  Could not find a version that satisfies the requirement xlwt (from versions: )

No matching distribution found for xlwt


是因为低版本的python 没有使用SSL连接, 我们在安装的请求参数添加如下选项  --trusted-host pypi.python.org ,就可以安装成功



阅读全文
0 0
原创粉丝点击