Installing pip using easy_install on Mac OS

30,693

Solution 1

The easy solution is download and install the latest version of Python 3. Just grab the dmg from the website https://www.python.org/downloads/release/python-370/ Verify it was installed.

$ python3 --version
Python 3.7.0

Pip is automatically included in this version so update it. Note use pip3 for Python 3.x

$ pip3 install --upgrade pip 
 Successfully uninstalled pip-10.0.1
 Successfully installed pip-18.0

I am running a fairly clean install of 10.13.6 High Sierra. Only developer options installed are command line tools, python 3, and R. No Homebrew.

Solution 2

You can simply try running these in your terminal

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

then

python get-pip.py

then

sudo easy_install pip

try to see if this works

from https://pip.readthedocs.io/en/stable/installing/

Solution 3

Hope you have tried installing Python via Homebrew, It should install pip for you aswell.

How do I install pip on macOS or OS X?

Share:
30,693
Malwinder Singh
Author by

Malwinder Singh

My Blog LinkedIn

Updated on July 09, 2022

Comments

  • Malwinder Singh
    Malwinder Singh almost 2 years

    I am trying to install pip through easy_install. I have tried the following command but no success:

    $ sudo /usr/bin/easy_install pip
    

    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')
    

    I have also tried simpler version sudo easy_install pip but getting same error.

    I have tried many online solutions but still no success.

  • Malwinder Singh
    Malwinder Singh almost 6 years
    There's an issue. Now when I want to use pip , it says pip: command not found.
  • Bharath Metpally
    Bharath Metpally almost 6 years
    could you also state the current version of python installed please!
  • Edward
    Edward about 3 years
    I get the error "ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use bootstrap.pypa.io/pip/2.7/get-pip.py instead." on the second step: " python get-pip.py
  • Randil Tennakoon
    Randil Tennakoon about 2 years
    only the first two steps worked for me on macOS 12.3 and I could use pip.