Black Friday Hosting Deals: 69% Off + Free Migration: Grab the Deal Grab It Now!
PIP, the Python Package Installer, is a key helper for controlling Python packages. It lets you put in new ones, boost old ones, and chuck out the unneeded, all from the Python Package Index (PyPI) and more. This little guide will lead you in setting up PIP on a Windows rig.
Before you begin, ensure that:
- Python is installed on your Windows system. PIP comes bundled with Python variations 3.Four and later, so if you have this kind of versions, PIP ought to already be installed.
- You have administrative privileges on the Windows machine.
1. Open the Command Prompt:
- Press Win + R, type cmd, and press Enter.
2. Check if Python is installed by typing:
python --version
OR
py --version
If Python is established, it will display the Python version wide variety. If no longer, you'll want to put in Python from the legitimate internet site: python.Org.
1. In the Command Prompt, type:
pip --version
OR
python -m pip --version
If PIP is installed, the command will return the version number of PIP. If you see an error or no response, proceed to install PIP manually.
If PIP is not installed, follow these steps:
1. Download the get-pip.py script:
- Open your web browser and go to the following URL: https://bootstrap.pypa.io/get-pip.py.
- Right-click on the page and select "Save As" to download the get-pip.py file to a location on your computer (e.g., Desktop or Downloads).
2. Install PIP using the downloaded script
- Open Command Prompt as an administrator:
a)Search for "cmd" in the Start menu, right-click on "Command Prompt," and select "Run as administrator."
- Navigate to the directory where get-pip.py is saved. For example:
cd Desktop
- Run the script by typing:
python get-pip.py
- The script will install PIP along with its dependencies.
1. To confirm that PIP is installed correctly, type:
pip --version
You should see a message indicating the PIP version and the Python installation path.
If the command pip is not recognized, you may need to add Python and PIP to your system’s PATH.
1. Open the System Properties:
- Right-click on "This PC" or "Computer" on the desktop and select "Properties."
- Click on "Advanced system settings" on the left side.
- In the System Properties window, click on the "Environment Variables" button.
Find the "Path" variable under "System variables," select it, and click "Edit."
2. Find the "Path" variable under "System variables," select it, and click "Edit."
3. Add the path to the Python and PIP executables:
- Click "New" and add the path to your Python installation (e.g., C:\Python39\).
- Also, add the Scripts directory (e.g., C:\Python39\Scripts\), where PIP is located.
4. Click "OK" to close all windows and apply the changes.
5. Close and reopen the Command Prompt to apply the changes. Then, type “pip --version” to verify the installation.
You have successfully installed PIP on your Windows server system. You can now use PIP to manage Python packages easily. For additional help, you can refer to the official PIP documentation or seek assistance from the Python community.
Let’s talk about the future, and make it happen!
By continuing to use and navigate this website, you are agreeing to the use of cookies.
Find out more