Before we start with how to install pip for Python on Windows, let’s first go through the basic introduction to Python. Python is a widely-used general-purpose, high-level programming language. Python is a programming language that lets you work quickly and integrate systems more efficiently.
Pip is the standard package manager for Python. It enables the installation and management of third party packages that provide features and functionality not contained in the Python standard library. Newer versions of Python (Python 2 >= v2.7.9 or Python 3 >= v3.4) come prepackaged with pip by default. Pip is also included in the virtual environments created by virtualenv and pyvenv.
But if you’re using an older version of Python, pip will need to be manually installed. This tutorial steps through how to install Pip on Windows, and explains how to keep it updated.
Read Also: Things you can do with Python Language
Prerequisites for PIP Installation
Check if pip is already installed by running the following on the command line:
pip --version
or
pip -V
If pip is installed, you’ll see something similar to the following output:
C:usersjdoe>pip --version
Pip 19.2.3 from c:usersjdoeappdatalocalprogramspythonpython38-32libsite-packagespip (python 3.8)
How to Download and Install PIP With Get-Pip.Py
pip can be downloaded and installed using the command line by going through the following steps:
- Download the get-pip.py file and store it in the same directory as Python is installed. For older Python versions, you may need to use the appropriate version of the file from pypa.org.
- Open command prompt and change the current path of the directory in the command line to the directory’s path where the above file exists (path where python is installed).
- Run the command given below:
python get-pip.py
- and wait through the installation process.
- Voila! pip is now installed on your system.
Verification of the installation process:
One can easily verify if the pip has been installed correctly by performing a version check. Just go to the command line and execute the following command:
pip -V