Even if you are not into
Python there comes a time when you end up with the need of having to install
pip on your macOS or OSX-based computer.
Searching online would lead you to long tutorials which are not really what you need. In this post, I’ll give you multiple one-line solutions based on your version of Python installed.
If you have the default version of Python on macOS (v2.7 as of 2021).
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python
If you have Python v3 installed as
python, run this:
curl https://bootstrap.pypa.io/get-pip.py | python
Or if you have it installed as
python3 run the following:
curl https://bootstrap.pypa.io/get-pip.py | python3
That’s about it. Have fun. Check out my courses — could be fun.
I’ve just launched a course called VSCode Power User → Check out why I worked ridiculously hard for 1.5 years and 1,000+ hours building, recording, sharing 200+ dev tips in this VSCode.pro course!
easy_install has been deprecated in 2019.
easy_install has been deprecated. Please use
Step #1 — First of all download the
get-pip file by running:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Step #2 — Now run this file to install
That should do it. Make sure you run this with Python 3.X as this doesn’t work for Python 2.X. If you want to upgrade to Python 3 check out this post.
Another gif you said? Here ya go!
Old Method (doesn’t work anymore)#
ℹ Now, all you have to do is run the following command.
sudo easy_install pip
pip will be installed and you’ll be able to use it for installing other packages.
Let me know if you have any problems installing
pip this way.
I’ve just launched a course called VSCode Power User → This is easily my best work ever. Check out why I worked ridiculously hard for 1.5 years and 1,000+ hours building, recording, sharing 200+ dev tips in this VSCode.pro course!