1. 程式人生 > >python安裝的時候報SSL連線錯誤的解決辦法

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