[Must-see tips] How to install Pip on Windows system? Secrets revealed that even novices can learn!

🔍✨ Want to successfully install Pip on Windows system? This tutorial teaches you to use simple techniques to easily get it, even a novice can get it! Come and master this little trick and take your Python programming to the next level! 💻🚀

[Must-see tips] How to install Pip on Windows system? Secrets revealed that even novices can learn!

Recently, we wrote an article on how to useChatGPT API buildingAIDetailed tutorial on chatbots. In this project, we use Python and Pip to run several basic libraries. Therefore, if you are also preparing to start using Python for project development, please make sure you have Pip installed on your Windows PC. This way, you'll be able to download many dependencies and libraries in seconds. On that note, let’s move on to learn how to install Pip on Windows 11 and 10.

In this article, you will learn a little about Pip and find out how to install it with Python on Windows. We'll also cover workarounds for some common errors, mostly related to misconfigured paths. You can use the table of contents list below to quickly navigate to any section that interests you.

  • What is Pip?
  • Check if Pip is already installed on Windows
  • How to install Pip on a Windows computer
  • Upgrade or downgrade Pip on Windows
  • How to add Python and Pip to PATH on Windows 11 and 10

What is Pip?

Pip picture 2

Pip is for PythonsoftwarePackage manager. Simply put, it allows you to easily install and manage millions of Python packages and libraries from the command line. It connects to the Python Package Index (PyPI) repository, where you can find thousands of projects, applications, software development kits, clients, and more…

If you are developing a project and you need some dependencies that are not part of the standard Python distribution, Pip can easily add them for you. In short, Pip is an important part of Python, and before you can start using it, you must install it.

Check if Pip is already installed on Windows

If you already have Python installed, then you probably already have Pip installed on your system. So before proceeding with the installation steps, let us first check if Pip is already installed on your Windows system.

1. Open a command prompt or Windows terminal. Then run the following command. If you get the Pip version as output, then it means that Pip is already installed on your computer. You can continue scrolling down to learn how to upgrade Pip to the latest version on Windows.

pip --version

Open Command Prompt or Windows Terminal Picture 3

2. If you get something like "Command not found” or “ 'Pip' is not recognized as an internal or external command, operable program or batch file" error message, then this means that Pip is not installed correctly on your computer. Please follow the steps below to install Pip and configure it path.

Tip 4 that Pip is not installed correctly

How to install Pip on a Windows computer

Install Pip using Python

To install Pip on Windows, you only need to install Python. Pip is also automatically sideloaded on Windows when you install Python using a desktop settings file. Here are the steps to set up Pip.

1. First, move to this link,Download the latest version of Python for Windows.

Download the latest version of Python Picture 5

2. Then, double-click the installation file. Once the installer starts, make sure "Add python.exe to PATH” checkbox next to it.

Add Python.exe to PATH Picture 6

3. Next, click on “Customize installation” and make sure “pip” is enabled along with the other options. Then click “Next” and then “Install”.

Custom installation of Python Part 7

4. Now, both Python and Pip will be successfully installed on your Windows computer.

Successfully installed Python Picture 8

Install Pip via command line

You can also install Pip manually from the command line via CMD or Windows Terminal. Follow the steps below.

1. Right clickthis link, then select "Save link as...".

Save get-pip.py to the local 9th ​​picture

2. Now, save the file as “Downloads” folderget-pip.py. "

get-pip.py saves the 10th picture locally

3. Next, right-click on “get-pip.py” file and select “Copy file address.”

Copy file address No. 11

4. Finally, open a terminal and execute the following command. enter python, add a space, and paste the path. Then press Enter and Pip will be installed on your Windows 11/10 computer.

python "C:\Users\mearj\Downloads\get-pip.py"

Installing Pip via the command line Picture 12

5. Alternatively, you can run the following command to download and install Pip on your Windows PC using the “surepip” module.

python -m ensurepip --upgrade

Installing Pip using the "surepip" module Picture 13

Verify Pip installation

1. To make sure everything is running smoothly, open a Windows Terminal or Command Prompt and run the following commands. If the installation is successful, the first command will display the Python version and the second command will display the Pip version currently installed on your PC.

python --version
pip --version

Checking Python Version and Verifying Pip Installation Chapter 14

2. You can also enter the following command to view the参数All pip commands. If it returns a bunch of command options, you're good to go.

python --help
pip --help

View pip parameter command-01 Picture 15

View pip parameter command-02 Picture 16

View pip parameter command-03 Picture 17

View pip parameter command-04 Picture 18

Upgrade or downgrade Pip on Windows

1. After the installation is complete, run the following command through the terminal to upgrade Pip to the latest version. Here's what the syntax looks like:

python -m pip install -U pip

Upgrade Pip to the latest version No. 19

2. If you want to downgrade Pip to a specific version, run the following command:

python -m pip install pip==19.0

Downgrade Pip to a specific version 20th picture

How to add Python and Pip to PATH on Windows 11 and 10

After installing and running Python or Pip commands on Windows, if you encounter something like "pip is not recognized as an internal or external command”, “Python is not recognized as an internal or external command” or just “Python not found” errors, don’t worry. This means that Python or Pip may have been installed on your Windows PC, but their paths have not been configured correctly . We need to add their directory to the global Windows environment variables. Here is how to do this.

1. First, press “Windows + R” Open the Run dialog box and paste the following path, then hit Enter.

%localappdata%\Programs\Python

Windows running picture 21

2. Next, open another "Python3XX" folder. Now, copy the entire path from the address bar. This is what you need to add as an environment variablePython path.

Copy the "Python3XX" folder path picture 22

3. Then, move to the “Scripts” folder and click on the address bar. Now, copy the entire path again. This isPip path, you need to add it as an environment variable.

Copy Pip path picture 23

4. Next, press “Windows + R” to open the Run dialog box again. Here, entersysdm.cpl, and then click Enter. This will directly open the advanced system settings.

sysdm.cpl No. 24

5. Move to the "Advanced" tab and click on the "Environment variables. "

Windows environment variables picture 25

6. Next, in"User variables for…” section, select “Path” and click the “Edit…” button.

User variable path setting picture 26

7. Then, click “New” and paste the Python path you just copied and click “determine. "

Add Python path to user variables Picture 27

8. Finally, show your magical power, open the command line or Windows terminal, and start the Python/Pip ceremony. So, for example - you can use the pip command to make OpenAPI come to your Windows kingdom, which is nothing more than an error-free magic feast.

The magical power roared in, the order was issued, and the OpenAI servants arrived immediately:

python --version
pip install openai

The Windows terminal is like a loyal attendant, religiously executing the sacred commands of Python/Pip. Picture 28

9. Now, you have successfully added Python and Pip to the Windows environment variables. Close all open dialog boxes, restart your computer, and open Terminal again. enter python Or pip command to verify that they are working as expected.

Verify that Python and Pip have been added to the environment variables Picture 29

I hope this article can help you successfully install and configure Pip on Windows. If you have any questions or feedback, please let us know in the comments below.

Comment

Your email address will not be published. Required fields * Callout

Scroll to Top