[英]Installing python 3.6 on mac along with pip
想在 Mac 上安裝 python 3.6 和 pip。
brew install python - 安裝 python 3.7 和 pip 將隨之安裝。
在線文檔指導使用以下命令安裝 python3.6 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
但這不會同時安裝 pip,python3 get-pip.py 也會失敗,並出現以下 SSL 證書錯誤。
python3 get-pip.py
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
我可以知道在 Mac 上安裝 python 3.6 以及正確的 pip 的正確方法嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.