MAC 安装pip出错 error: Could not find suitable distribution for Requirement.parse('pip')
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
解决方案:执行:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py