▶ 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
参考链接:
本文解决在使用sudoeasy_installpip命令安装pip时遇到的SSL错误问题,提供了一个替代方案,通过curl下载get-pip.py脚本并使用sudo python get-pip.py来成功安装pip。
1626

被折叠的 条评论
为什么被折叠?



