How to Install Pip on Windows:-
Recently, we wrote a detailed tutorial on how to build your own AI Chabot using the Chat GPT API. And for that project, we run several required libraries using Python and Pip. So if you're starting out with Python for a project, be sure to install pip on your Windows PC. You will be able to download many dependencies and libraries in seconds. On that note, let's go ahead and learn how to install pip on Windows 11 and 10.
Install
Pip on Windows 11 and 10:-
Here,
you can learn about pip and find out how to install it on Windows with Python.
We've also added some bug fixes, mostly related to path misconfigurations. You
can expand the table below and go to any section you wish.
What
is Pip?
Pipe
is Python's package manager. Simply put, it basically lets you install and
manage millions of Python packages and libraries from the command line. It
connects to the Python Package Index repository where you can find thousands of
projects, apps, software development kits, clients, and more. If you're
developing a project and need some dependencies that aren't part of the
standard Python distribution, Pip can easily add them for you. Simply put,
pipes are an integral part of Python and to get started, you need to install
both.
Check
if Pip is Already Installed on Windows:-
If
you have Python installed, you may already have pip installed on your system.
So before you go to the installation step, check if pip is installed on
Windows.
1.
Open Command Prompt or Windows Terminal. After that, run the below command. If
you get pip version as output, it means pip is already installed on your PC.
You can scroll down and learn how to upgrade Pip to the latest version of
Windows.
2.
If, you get error like "Command not found" or "'pip' is not
recognized as an internal or external command, operable program or batch
file", then it means that pip is not properly installed on your PC. Follow
the steps below to install pip and configure its path.
How
to Install Pip on Windows PCs:-
Install
Pip with Python:-
To
install pip on Windows, you only need to install Python. When you install
Python using the desktop setup file, pip is also side loaded on Windows. Here's
how you can set up Pip on Windows.
1.
First and foremost, visit this link and download the latest version of Python
for Windows.
2.
Next, double click on the setup file. Once the installer appears, be sure to
enable the checkbox next to "Add Python.exe to PATH".
3.
Next, click on "Customize Installation" and make sure that
"Pip" is enabled along with other options. Click "Next" and
then "Install".
4.
Now, both Python and Pip will be installed on your Windows PC.
Install
Pip via Command Line:-
You
can install pip on Windows manually from the command line using CMD or the
Windows Terminal. Follow the steps below.
1.
Right click on this link and then select "Save link as..."
2.
Now, save as "get-pip.py" file in "Downloads" folder
3.
Next, right-click on the "get-pip.py" files and select "Copy as
path".
4.
Finally, open Terminal and execute it in below fashion. Enter python, add a
space, and then paste the path. After that, press Enter and Pip will be
installed on your Windows 11/10 computer.
5.
Alternatively, you can run this command to download and install pip on a
Windows PC using the "ensurpip" module.
Verify
Pip Installation:-
1.
To check if everything is fine, open Windows Terminal or Command Prompt and run
the commands below. 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.
2.
You can type the command below to find all commands that pip takes as an
argument. If it provides a long list of command options, you're good to go.
Upgrade
or Downgrade Pip on Windows:-
1.
After installation, run below command in terminal to upgrade pip to latest
version of Windows Here is how the syntax looks like.
2.
If you want to downgrade pip to a specific version, run the below command.
How
to Add Python and Pip to Path on Windows 11 and 10:-
If
you get errors like "Pip is not recognized as an internal or external
command" or "Python is not recognized as an internal or external
command" or "Python was not found" after installing and running
Python or pip commands on Windows, don't worry. This does not mean that you may
have Python or Pip installed on your Windows PC, but their paths are not
configured correctly. We need to add their directory as a global Windows environment
variable. Here's how.
1.
First, press "Windows + R" to open run prompt and paste below path
and press enter.
2.
Next, open another "Python3XX" folder. Now, copy the entire path from
the address bar. This is the path to Python that you need to add as an
environment variable.
3.
Next, go to "Scripts" folder and click on "Address Bar".
Now, copy the entire path again. This is the path to Pip that you need to add
as an environment variable.
4.
After you have the path for both Python and Pip, open the Run prompt again by
pressing "Windows + R". Here, type sysdm.cpl and press Enter. This
will directly open Advanced System Settings.
5.
Go to the "Advanced" tab, and click on "Environment
Variables" at the bottom.
6.
Next, under the "User variables for ..." section, select
"Path" and click the "Edit..." button.
7.
Here, click on "New" and add both the paths you copied above on the
left side. Now, click on "OK". Remember, the path will be different
for each PC. This will add Python and pip to your PC as global environment
variables. Finally, open a command prompt or Windows Terminal and run a
python/pip command. For example - you can use pip command to install Open-air
on your Windows PC and it won't show any error.
Conclusion:-
Hope
I am going to tell about How to Install Pip on Windows through this post. You
found the site you were looking for. If you want to know more about them, you
can ask in the comments below.
Comments