How to install pip with Python 3.X


If you want to install pip using Python version 3.x, the first thing to make sure is that you have Python3 installed on your device.

To do that check the version command on your console/terminal.

python3 --version

Python 3.11.4

As you can see Python 3 is already installed on my system.

Now we are good to install pip. Follow the below steps.


Step 1: Download the get-pip.py script

You will find the script at https://bootstrap.pypa.io/get-pip.py


Step 2: Run the get-pip.py script

Make sure you are in the same folder/directory where you have downloaded the get-pip.py script.

macOS/Linux Terminal:
python3 get-pip.py
Windows CMD/PowerShell:
py3 get-pip.py


There are other ways as well to install pip/pip3 for Pyhton 3.

Using apt-get module

apt-get install python3-pip

Note: You may require to use sudo


Note: If you have Python 3.4.x or above, you should have pip installed by default.


Read more: PEP 453: Explicit Bootstrapping of PIP in Python Installations Bootstrapping pip By Default https://docs.python.org/3/whatsnew/3.4.html#bootstrapping-pip-by-default

install pip with Pyhton3

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap