MAC OSX安裝pip出錯 error: Could not find suitable distribution for Requirement.parse('pip')
阿新 • • 發佈:2019-01-27
▶ sudo easy_install pip Password: Searching for pip Reading https://pypi.python.org/simple/pip/ Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found! Couldn't find index page for 'pip' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found! No local packages or download links found for pip error: Could not find suitable distribution for Requirement.parse('pip')
解決方案:執行:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
參考連結: