Mal*_*ngh 2 python pip easy-install
I am trying to install pip through easy_install. I have tried the following command but no success:
$ sudo /usr/bin/easy_install pip
Run Code Online (Sandbox Code Playgroud)
Result:
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')
Run Code Online (Sandbox Code Playgroud)
I have also tried simpler version sudo easy_install pip but getting same error.
I have tried many online solutions but still no success.
简单的解决方案是下载并安装最新版本的 Python 3。只需从网站https://www.python.org/downloads/release/python-370/获取 dmg 验证它是否已安装。
$ python3 --version
Python 3.7.0
Run Code Online (Sandbox Code Playgroud)
Pip 自动包含在此版本中,因此请更新它。注意 Python 3.x 使用 pip3
$ pip3 install --upgrade pip
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.0
Run Code Online (Sandbox Code Playgroud)
我正在运行一个相当干净的 10.13.6 High Sierra 安装。仅安装的开发人员选项是命令行工具、python 3 和 R。没有 Homebrew。
| 归档时间: |
|
| 查看次数: |
24561 次 |
| 最近记录: |