【发布时间】:2018-10-30 03:53:36
【问题描述】:
我正在尝试通过easy_install 安装pip。我尝试了以下命令但没有成功:
$ sudo /usr/bin/easy_install pip
结果:
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')
我也尝试过更简单的版本sudo easy_install pip,但得到了同样的错误。
我尝试了许多在线解决方案,但仍然没有成功。
【问题讨论】:
-
你有什么版本的 Python?
pip包含在 Python 3.4 及更高版本的二进制文件中,因此我假设您的版本较低。
标签: python pip easy-install