[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

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

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.

Pip not installed correctly message

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

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

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

Custom Python installation

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

Python installed successfully

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 your local machine.

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

Save get-pip.py locally

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

Copy file address

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"

Install Pip via command line

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

Install Pip using the "surepip" module.

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

Check Python version and verify Pip installation

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

Command to view pip parameters -01

Command to view pip parameters -02

Command to view pip parameters -03

Command to view pip parameters -04

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.

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

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

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 path to the "Python3XX" folder

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

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

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

Windows environment variables

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

User variable path settings

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

Add the Python path to user variables

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 acts like a faithful servant, devoutly executing the sacred commands of Python/Pip.

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.

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