Ahmad Awais



QuickTip: How Do I Install pip on macOS or OS X?

Ahmad AwaisAhmad Awais

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. Before 2019, all you have to do is run the following command. Sadly, this doesn’t work now. So, keep reading below.

sudo easy_install pip

JUST A NOTE: I’m teaching thousands of devs how to become VSCode Power Users → ✅ This site is super fast?! It’s hosted with Kinsta on Google servers →


The macOS comes with Python installed. But to make sure that you have Python installed open the terminal and run the following command.

python --version

If this command returns a version number that means Python exists. Which also means that you already have access to easy_install; considering you are using MacOS/OSX.

Install pip on macOS#

⚠️ easy_install has been deprecated in 2019.
Check the new method below for preferred installation!

easy_install has been deprecated. Please use get-pip.py instead.

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 pip

python get-pip.py

That should do it. Another gif you said? Here ya go!


Old Method#

ℹ Now, all you have to do is run the following command.

sudo easy_install pip

After thatpip 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.

Complimentary GIF#

pip pythonPeace! ✌

🔥 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 a 1,000+ hours building, recording, sharing 200+ dev tips in this VSCode.pro course!

I help businesses understand developers 📟 Currently recording Node.js CLI Automation Course 👨‍🏫 Edutainer at VSCode.pro 🎩 An award-winning open-source engineer and developer advocate 🦊 Google Developers Expert for web 🌳 Node.js foundation Community Committee member ✌️ Author of various open-source dev-tools and software libraries used by millions of developers worldwide ⓦ WordPress Core Developer 📣 TEDx Speaker 🙌 Leading developers and publishing technical content for over a decade 😂 Self-confessed tech comedian cracking silly jokes in the JavaScript web and cloud communities 💜 Loves his wife (Maedah) ❯ Learn more about Awais ↣

Say 👋 on Twitter @MrAhmadAwais | Subscribe to the Developers Takeaway!


Developers Takeaway

Takeaway my professional opinion on open-source, developer relations, growing your business with family, and everything in between! Delivered to your inbox a couple of times every year. I'm even funny at times. I hate spam — pinky-promise!

👨‍💻👩‍💻 115,834 Developers Already Subscribed