我在mac上执行sudo easy_install pip
命令时遇到问题。我不在防火墙后面。我使用的是python版本2.7.10。macOS Sierra的版本是10.12.4。以下是我收到的错误:
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')
我找到了一个使用
brew
来安装pyenv
的解决方案。找到了here的解决方案,但我只需要使用pip
之前的零件。在在完成这些步骤之后,我再次运行
sudo easy_install pip
和eureka!成功了。在相关问题 更多 >
编程相关推荐