How to Install PIP on Windows
Installing PIP (Python Package Installer) on Windows is a straightforward process. PIP is used to install and manage Python packages from the Python Package Index (PyPI). Here's how you can install PIP on Windows:
Download the get-pip.py Script
Open a web browser and go to https://bootstrap.pypa.io/get-pip.py . Right-click on the page and choose "Save Page As" to download the get-pip.py script.
Open Command Prompt
Press the Windows + R keys to open the Run dialog, type cmd, and press Enter. This will open the Command Prompt.
Navigate to the Script Directory
Use the cd command to navigate to the directory where you saved the get-pip.py script. For example, if you saved it in the Downloads folder, use the command:
In the Command Prompt, run the following command to install PIP:
If you have multiple versions of Python installed, replace python with python3 or python3.x (where x is the specific version number).
Verify PIP Installation
After the installation is complete, you can verify that PIP is installed correctly by running:
This command should display the installed version of PIP.
Here's a summary of the steps:
- Download get-pip.py from https://bootstrap.pypa.io/get-pip.py
- Open Command Prompt.
- Navigate to the directory containing the script.
- Run python get-pip.py to install PIP.
- Verify the installation using pip --version.
Once PIP is installed, you can use it to install Python packages and libraries easily by running commands like pip install package-name. For example, to install the requests library, you would run pip install requests. Also, Make sure that Python is already installed and added to your system's PATH environment variable before installing PIP.