In this tutorial, we will learn how to update pip on Windows. We will also learn how to upgrade, how to check the version and how to downgrade pip to a previous version. upgrade PIP on Windows
Have you ever ventured into the world of Python programming? upgrade PIP on Windows If so, you may have come across pip, the de facto package manager for Python. It neatly organizes the installation of some essential tools and libraries to make your coding life a whole lot easier. But like any software, PIP also needs to be upgraded from time to time to stay secure and work better. Updating updates its system so that it works very well.
This guidance equips you with the knowledge and tools to upgrade PIP on Windows confidently. We’ll take a deep dive into why upgrading is important, how it should be done, how it should be done, how it goes, and how it works. We’ll also address potential problems you may encounter. So Python enthusiasts, buckle up and let’s get into it.
What does pip () do?
pip is a package management system used to install and manage software and package libraries written in Python. These files are stored in a large “online repository” called the Python Package Index (PyPI). PyPI is used as the default source for PIP packages and their dependencies. So whenever you type.
pip install package_name
pip will search for your package on PyPI. If it finds it, it will download and install the package on your local system. There are a few important points to focus on here.
- Upgrade PIP on Windows
- Check the current version of PIP
- Downgrade PIP to previous version
Upgrade PIP on Windows
To upgrade pip on windows simply open windows command prompt and type the following command to upgrade windows.
python -m pip install –upgrade pip
Upgrade and Managing Multiple Python Versions
If you want to update your machine to a specific version of Python then you can follow the steps below.
Step 1: Type Command Prompt in Window’s search box
Step 2: Open the Command Prompt and you will see the following screen.
C:\Users\Shivang>
Step 3: Type “cd” in the Command Prompt to ensure that your starting point has only the drive name:
C:\Users\Shivang>cd\
Step 4: Now press Enter and you will see the following screen.
C:\>
Step 5: Locate your original Python Application path ( the folder in which you originally installed Python ).
C:\Users\Shivang\AppData\Local\Programs\Python\Python39
Step 6: After retrieving the original Python Application Path, type “cd” followed by your Python Application Path:
C:\>cd C:\Users\Shivang\AppData\Local\Programs\Python\Python39
Step 7: Press Enter and then type this following command in your Command Prompt window:
python -m pip install –upgrade pip
For example,
C:\Users\Shivang\AppData\Local\Programs\Python\Python39>python -m pip install ––upgrade pip
Step 8: You will notice that the latest PIP version is installed
Check the Version of PIP
To check the current version of PIP, just type the following command in your Command Prompt:
pip –version
Downgrade PIP
In the previous section we learned how to upgrade the Windows version of pip, but what if you want to revert back to the previous version of pip. You can easily revert your Windows version to its previous version You can downgrade. Let’s see how you can do it?
To downgrade the PIP version just type the following command:
python -m pip install pip==version_name
Suppose you wanted to downgrade your PIP version to 18.1 then,
python -m pip install pip==18.1
You will see the version of PIP that you wanted to install is installed.
Successfully installed pip-18.1
You should not miss this opportunity to ride the wave of data revolution. Every industry is reaching new heights by using the power of data. Bring out your skills and try to be a part of the most popular market of the 21st century.