OS X EI Captain 下解決 There was a problem confirming the ssl certificate 問題

參考:

Problem Confirming the SSL Certificate - OSXpython

OS X EI Captain 下解決 There was a problem confirming the ssl certificate 問題

在安裝 matplotlib 時,出現如下錯誤:git

python3 -mpip install matplotlib

Collecting matplotlib
  Could not fetch URL https://pypi.python.org/simple/matplotlib/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement matplotlib (from versions: )
No matching distribution found for matplotlib

解決方法是使用如下方法更新pip:github

curl https://bootstrap.pypa.io/get-pip.py | python3

2019.4bootstrap

相關文章
相關標籤/搜索