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

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 ,就可以安装成功



posted on 2017-10-22 09:19  测试小小  阅读(2450)  评论(0编辑  收藏  举报