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