Osx installation pip error

  1. sudo easyinstall pip error
  2. python version is included in the system 2.7.10 , openssl version is OpenSSL 0.9.8zh 14 Jan 2016 , macos is 10.12.6
  3. specific error reports are as follows:
$ sudo easy_install-2.7 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")

guess is the problem of ssl . I searched the Internet and didn"t come across a useful plan. Ask for assists

.
Mar.18,2021

curl 'https://bootstrap.pypa.io/get-pip.py' > get-pip.py

 sudo python get-pip.py

just perform the above two steps ~ qin test

 sudo easy_install pip

try homebrew:

brew install pip3


get python, to install an anaconda can save a lot of installation troubles


osx, brew this artifact can not be without


you open the prompt of this website address to know, redirect, in easy_install.py to modify these two URLs to the URL after the redirect, the URL is https, you need to install ssl

Menu