Quantcast
Channel: 不自量力 の Weithenn
Viewing all articles
Browse latest Browse all 598

執行 upgrade pip 時發生 SSL Certificate Verify Failed 錯誤

$
0
0


Question: 執行 upgrade pip 時發生 SSL Certificate Verify Failed 錯誤?

執行「pip install --upgrade pip」指令,準備升級 pip 版本時發生「SSL: Certificate Verify Failed」的錯誤訊息,如下圖所示:





Answer:

參考 i cannot install or upgrade pip "ssl error"· Issue #5448 · pypa/pip · GitHub討論串,加上「--trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org」參數即可解決:
$ sudo pip install --upgrade pip --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org



Viewing all articles
Browse latest Browse all 598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>