How to Install PIP For Python on Windows | phoenixNAP KB (2024)

Introduction

PIP is a package management system used to install and manage software packages written in Python. It stands for “preferred installer program” or “Pip Installs Packages.”

PIP for Python is a utilityto manage PyPI package installations from the command line.

If you are using an older version of Python on Windows, you may need to install PIP. You can easily install PIP on Windows by downloading the installation package, opening the command line, and launching the installer.

This tutorial will show how to install PIP on Windows, check its version, upgrade, and configure.

How to Install PIP For Python on Windows | phoenixNAP KB (1)

Note: The latest versions of Python come with PIP pre-installed, but older versions require manual installation. The following guide is for version 3.4 and above. If you are using an older version of Python, you can upgrade Python via the Python website.

Prerequisites

  • Computer running Windows or Windows server
  • Access to the Command Prompt window

Before you start: Check if PIP is Already Installed

PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments.

Before you install PIP on Windows, check if PIP is already installed.

1. Launch the command prompt window:

  • Press Windows Key + X.
  • Click Run.
  • Type in cmd.exe and hit enter.

Alternatively, type cmd in the Windows search bar and click the “Command Prompt” icon.

2. Type in the following command at the command prompt:

pip help

If PIP responds, then PIP is installed. Otherwise, there will be an error saying the program could not be found.

How to Install PIP For Python on Windows | phoenixNAP KB (2)

Installing PIP On Windows

Follow the steps outlined below to install PIP on Windows.

Step 1: Download PIP get-pip.py

Before installing PIP, download the get-pip.py file.

1. Launch a command prompt if it isn't already open. To do so, open the Windows search bar, type cmd and click on the icon.

2. Then, run the following command to download the get-pip.py file:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
How to Install PIP For Python on Windows | phoenixNAP KB (3)

Step 2: InstallingPIP on Windows

To install PIP type in the following:

python get-pip.py
How to Install PIP For Python on Windows | phoenixNAP KB (4)

If the file isn’t found, double-check the path to the folder where you saved the file. You can view the contents of your current directory using the following command:

dir

The dir command returns a full listing of the contents of a directory.

Step 3: Verify Installation

Once you’ve installed PIP, you can test whether the installation has been successful by typing the following:

pip help

If PIP has been installed, the program runs, and you should see the location of the software package and a list of commands you can use with pip.

How to Install PIP For Python on Windows | phoenixNAP KB (5)

If you receive an error, repeat the installation process.

Step 4: Add Pip to Windows Environment Variables

To run PIP from any location, you need to add it to Windows environment variables to avoid getting the "not on PATH" error. To do so, follow the steps outlined below:

  1. Open the System and Security window by searching for it in the Control Plane.
  2. Navigate to System settings.
How to Install PIP For Python on Windows | phoenixNAP KB (6)
  1. Then, select Advanced system settings.
How to Install PIP For Python on Windows | phoenixNAP KB (7)
  1. Open the Environment Variables and double-click on the Path variable in the System Variables.
How to Install PIP For Python on Windows | phoenixNAP KB (8)
  1. Next, select New and add the directory where you installed PIP.
  2. Click OK to save the changes.

Step 5: Configuration

In Windows, the PIP configuration file is %HOME%\pip\pip.ini.

There is also a legacy per-user configuration file. The file is located at %APPDATA%\pip\pip.ini.

You can set a custom path location for this config file using the environment variable PIP_CONFIG_FILE.

Upgrading PIP for Python on Windows

New versions of PIP are released occasionally. These versions may improve the functionality or be obligatory for security purposes.

To check the current version of PIP, run:

pip --version
How to Install PIP For Python on Windows | phoenixNAP KB (9)

To upgrade PIP on Windows, enter the following in the command prompt:

python -m pip install --upgrade pip

This command uninstalls the old version of PIP and then installs the most current version of PIP.

Downgrade PIP Version

Downgrading may be necessary if a new version of PIP starts performing undesirably. To downgrade PIP to a prior version, specifying the version you want.

To downgrade PIP, use the syntax:

python -m pip install pip==version_number

For example, to downgrade to version 18.1, you would run:

python -m pip install pip==18.1

You should now see the version of PIP that you specified.

Note: Learn how to update packages using winget upgrade command.

Conclusion

Congratulations, you have installed PIP for Pythonon Windows. Check out our other guides to learn how to install PIP on other operating systems:

Now that you have PIP up and running, you are ready to manage your Python packages.

NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices. Check out our guide and learn how to install NumPy using PIP.

How to Install PIP For Python on Windows | phoenixNAP KB (2024)

FAQs

How to Install PIP For Python on Windows | phoenixNAP KB? ›

To do so, open the command line application Command Prompt (in Windows search, type cmd and press Enter ) or Windows PowerShell (right-click on the Start button and select Windows PowerShell ) and type there python -V .

How to install Python pip on window? ›

How to Install PIP on Windows
  1. Check If Python Is Available. ...
  2. Check If PIP Is Already Installed. ...
  3. Download PIP. ...
  4. Install PIP on Windows. ...
  5. Verify the PIP Installation Process and Check the PIP Version. ...
  6. Add PIP to Windows Environment Variables.
Jun 9, 2022

How to install pip in Python 3.10 Windows 11? ›

Here's how to do so.
  1. Click the “Start Menu” icon and type “cmd.”
  2. Choose “Run as administrator” on the right side.
  3. Type “pip help” and press “Enter.”
  4. Note the feedback. ...
  5. Once you verify your Windows 11 PC doesn't have PIP, launch your browser and go to the Python for Windows website.
  6. Download and run the setup file.
Apr 2, 2023

How do I install Python 3.8 on Windows 10 using pip? ›

How to install Python?
  1. Click the download button and you will see Python 3.8. ...
  2. Click Python 3.8. ...
  3. Next, right click the mouse button you will see open button click to open.
  4. Enable to add Python 3.8 to path and click install now.
  5. Wait a few minutes and display setup was successful.
Mar 2, 2020

How to install pip for python3? ›

Installing pip for Python 3
  1. Start by updating the package list using the following command: sudo apt update.
  2. Use the following command to install pip for Python 3: sudo apt install python3-pip. ...
  3. Once the installation is complete, verify the installation by checking the pip version: pip3 --version.

How do I know if Python is pip installed? ›

First, let's check whether you already have pip installed:
  1. Open a command prompt by typing cmd into the search bar in the Start menu, and then clicking on Command Prompt: ...
  2. Type the following command into the command prompt and press Enter to see if pip is already installed: pip --version.

How to install Python packages in Windows? ›

Installation Requirements
  1. Open a Windows command window and run the following command to check that a suitable Python version is installed: python --version.
  2. Output should be similar to: ...
  3. To install a package: pip install <packagename>
Aug 5, 2022

How to install Python in Windows? ›

To download Python, you need to visit www.python.org, which is the official Python website.
  1. Basics to Advanced - Learn It All! ...
  2. This will take you to the page where the different Python releases for Windows can be found. ...
  3. Once the executable file download is complete, you can open it to install Python.
Apr 25, 2023

How to install Python in cmd? ›

To do so, open the command line application Command Prompt (in Windows search, type cmd and press Enter ) or Windows PowerShell (right-click on the Start button and select Windows PowerShell ) and type there python -V .

How to install Python3 on Windows? ›

Installing Python 3 on Windows 10 and 11
  1. Open a browser to the Python website and download the Windows installer. ...
  2. Double click on the downloaded file and install Python for all users, and ensure that Python is added to your path. ...
  3. After the installation is complete, click Disable path length limit and then Close.
Sep 28, 2022

How do I add pip to PATH in Windows 10? ›

Click on the Advanced system settings link on the left panel. Click Environment Variables. Under System Variables, double-click the variable PATH. Click New, and add the directory where pip is installed, e.g. C:Python33Scripts, and select OK.

How to install pip in PowerShell? ›

Install Python on Windows
  1. Step 1: Download. Go to python.org/downloads/windows. ...
  2. Step 2: Open Python Installer. ...
  3. Step 3: Verify Python Installed via PowerShell. ...
  4. Step 4: Update PowerShell Settings. ...
  5. Step 5: Create Dev Folder. ...
  6. Step 6: Update Pip. ...
  7. Step 7: Create a Virtual Environment. ...
  8. Step 8: Install any Python Package.
Aug 5, 2022

How to Install pip in Python 3.10 Windows 10? ›

Installing PIP On Windows
  1. Step 1: Download PIP get-pip.py. Before installing PIP, download the get-pip.py file. ...
  2. Step 2: Installing PIP on Windows. To install PIP type in the following: python get-pip.py. ...
  3. Step 3: Verify Installation. ...
  4. Step 4: Add Pip to Windows Environment Variables. ...
  5. Step 5: Configuration.
Feb 19, 2019

Can you pip Install a Python version? ›

TL;DR: You can install a specific version of a Python package using Pip by running the pip install <package_name>==<version> command. For example, to install version 1.3. 4 of Pandas, execute the pip install pandas==1.3. 4 command from the Terminal.

How do I Install Python 3.7 on Windows 10 using pip? ›

To install Python 3.7 and pip (Windows)
  1. Download the Python 3.7 Windows x86-64 executable installer from the downloads page of Python.org .
  2. Run the installer.
  3. Choose Add Python 3.7 to PATH.
  4. Choose Install Now.

How to install Python 3 and pip on Windows 10? ›

How To Install Python 3 on Windows 10
  1. Step 1: Select Version of Python to Install.
  2. Step 2: Download Python Executable Installer.
  3. Step 3: Run Executable Installer.
  4. Step 4: Verify Python Was Installed On Windows.
  5. Step 5: Verify Pip Was Installed.
  6. Step 6: Add Python Path to Environment Variables (Optional)
Apr 2, 2019

Does python3 come with pip? ›

Getting Started With pip. Package management is so important that Python's installers have included pip since versions 3.4 and 2.7. 9, for Python 3 and Python 2, respectively. Many Python projects use pip , which makes it an essential tool for every Pythonista.

Where is Python pip installed on Windows? ›

6.exe and pip3.exe are installed in 'C:\Users\YOUR_USERNAME\AppData\Local\Programs\Python\Python36\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Do I need to install pip after installing Python? ›

Usually, pip is automatically installed if you are: working in a virtual environment. using Python downloaded from python.org. using Python that has not been modified by a redistributor to remove ensurepip.

How do I manually install Python packages? ›

To install a package that includes a setup.py file, open a command or terminal window and:
  1. cd into the root directory where setup.py is located.
  2. Enter: python setup.py install.
Aug 9, 2022

What version of Python is pip? ›

PIP is a package manager for Python packages, or modules if you like. Note: If you have Python version 3.4 or later, PIP is included by default.

How do I install Python libraries on Windows 10? ›

Method 2 : NO Need of Anaconda
  1. Open RUN box using shortcut Windows Key + R.
  2. Enter cmd in the RUN box. Command Prompt. ...
  3. Search for folder named Scripts where pip applications are stored. Scripts Folder.
  4. In command prompt, type cd <file location of Scripts folder> cd refers to change directory. ...
  5. Type pip install package-name.

What is in pip install? ›

Pip is the default package manager for Python that most developers use to manage their Python global and virtual environments by installing, updating and uninstalling packages and their dependencies. By default, pip installs packages located in the Python Package Index (PyPI), but can also install from other indexes.

How do I know if Python is installed on Windows? ›

To check if Python is installed on your Windows machine using the Start Menu, follow these steps: Press the Windows key or click on the Start button to open the Start Menu. Type "python". If Python is installed, it should show up as the best match.

Why can't I Install Python on Windows? ›

The Python setup may fail if you don't have Windows Service Pack 1 (SP1) installed on your computer. It is a requirement for installing Python. Download Windows Service Pack 1. If it states an unspecified error, try downloading KB2999226.

How to install all libraries in Python? ›

Any Python library can be installed manually in just one step using the command: python3 <FILE_NAME>. py install. The command pip install package_name is used in Python to install libraries using scripts. Programmers can also use the pip command to uninstall Python libraries.

How to install python3 using terminal? ›

Installing Python 3 on Linux
  1. $ python3 --version. ...
  2. $ sudo apt-get update $ sudo apt-get install python3.6. ...
  3. $ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.8. ...
  4. $ sudo dnf install python3.

How do I run python3 from Windows command line? ›

To run Python scripts with the python command, you need to open a command-line and type in the word python , or python3 if you have both versions, followed by the path to your script, just like this: $ python3 hello.py Hello World! If everything works okay, after you press Enter , you'll see the phrase Hello World!

How to check Python version in cmd? ›

How to Check Python Version in 3 Easy Steps
  1. Open a terminal, command prompt, or Power Shell.
  2. Type python –version.
  3. To check the Python3 version, type python3 –version.
Mar 15, 2023

Where do I run pip install? ›

Ensure you can run pip from the command line

Run python get-pip.py . 2 This will install or upgrade pip. Additionally, it will install setuptools and wheel if they're not installed already. Be cautious if you're using a Python install that's managed by your operating system or another package manager.

How to install pip in local directory? ›

How?
  1. Install the downloaded package into a local directory : python get-pip.py --user This will install pip to your local directory (. local/bin) .
  2. Now you may navigate to this directory (cd . local/bin) and then use pip or better set your $PATH variable this directory to use pip anywhere : PATH=$PATH:~/.

Can you do pip on Windows 10? ›

Windows Native PiP Mode

To enable picture in picture mode in Windows 10, open the Movies & TV app and maximize the window. Now select a media from your local storage or choose a movie or TV show that you've bought/rented from the Microsoft Store.

How to enable pip install in cmd? ›

Press the Windows key + R to open Run. Type cmd and press Enter to open the command prompt. Enter the command python -m pip install (package name) and run it.

How to install Python3 in Windows PowerShell? ›

Once you've determined which version you would like to install, select Get. Once Python has completed the downloading and installation process, open Windows PowerShell using the Start menu (lower left Windows icon). Once PowerShell is open, enter Python --version to confirm that Python3 has installed on your machine.

Where is Python installed in Windows 10? ›

C:\Program Files\Python310 : if you selected Install for all users during installation, then the directory will be system wide. C:\Users\ Sammy \AppData\Local\Programs\Python\Python310 : if you didn't select Install for all users during installation, then the directory will be in the Windows user path.

How do I know if a Python module is installed? ›

To check all the installed Python modules, we can use the following two commands with the 'pip': Using 'pip freeze' command. Using 'pip list command.

What is the latest version of pip? ›

Pip 22.0. 4. pip install pip is the latest version, and it was released on 06th March 2022.

Where to install Python? ›

Install Python on Windows the smart way

By default the Python installer for Windows places its executables in the user's AppData directory, so that it doesn't require administrative permissions. If you're the only user on the system, you might want to place Python in a higher-level directory (e.g. C:\Python3.

How to install python3? ›

You can install from the Microsoft Store in two steps.
  1. Step 1: Open the Python App Page in the Microsoft Store. Open the Microsoft Store app and search for Python . ...
  2. Step 2: Install the Python App. After you've selected the version to be installed, follow these steps to complete the installation:

How do I update pip on Windows? ›

Upgrade PIP on Windows. Check the version of PIP. Downgrade PIP to a previous version.
...
Steps to upgrade PIP on Windows
  1. Type “Python” in the Windows Search Bar.
  2. Right-click on the Python App, and then select “Open file location”
  3. Right-click again on the Python shortcut, and then select “Open file location”

How to install pip pandas in Python Windows? ›

To install Pandas using pip, enter pip install pandas or pip3 install pandas in the terminal or command line. To install Pandas using conda, execute the following command on a terminal or command line: conda install pandas. ImportError usually arises when the Python working environment doesn't recognize pandas.

How to install pip in Python visual studio? ›

Install packages using the Python Environments window
  1. From the Python Environments window, select the default environment for new Python projects and choose the Packages tab. ...
  2. Install matplotlib by entering its name into the search field and then selecting the Run command: pip install matplotlib option.
Oct 24, 2022

How to install Python in Windows 10 with pip? ›

Installing Python and Pip on Windows
  1. Step 1: Download the Python Installer. The best way to install Python on Windows is by downloading the official Python installer from the Python website at python.org. ...
  2. Step 2: Run the Python Installer. ...
  3. Step 3: Verify Python Was Installed Correctly.

How to install Python in command prompt? ›

To do so, open the command line application Command Prompt (in Windows search, type cmd and press Enter ) or Windows PowerShell (right-click on the Start button and select Windows PowerShell ) and type there python -V .

How to install Python packages using pip cmd? ›

Installation Requirements
  1. Open a Windows command window and run the following command to check that a suitable Python version is installed: python --version.
  2. Output should be similar to: ...
  3. To install a package: pip install <packagename>
Aug 5, 2022

How to install pip install numpy in Python? ›

Open a terminal in your MacBook and type python to get into python prompt.
  1. Press command (⌘) + Space Bar to open Spotlight search. Type in Terminal and press enter.
  2. In the terminal, use the pip command to install numpy package.
  3. Once the package is installed successfully, type python to get into python prompt.
Mar 28, 2022

How to install Python embedded and pip? ›

Make sure you have already installed embeddable zip Python.
  1. Go to the link and download the file get-pip.py. ...
  2. Put the file get-pip.py in Python root directory C:\python-3.7. ...
  3. Start command prompt in administrator mode.
  4. Navigate to the Python root directory using command prompt.
  5. Execute the below command to install pip.

How to locally install pip? ›

How?
  1. Install the downloaded package into a local directory : python get-pip.py --user This will install pip to your local directory (. local/bin) .
  2. Now you may navigate to this directory (cd . local/bin) and then use pip or better set your $PATH variable this directory to use pip anywhere : PATH=$PATH:~/.

How to install python3 in Windows PowerShell? ›

Once you've determined which version you would like to install, select Get. Once Python has completed the downloading and installation process, open Windows PowerShell using the Start menu (lower left Windows icon). Once PowerShell is open, enter Python --version to confirm that Python3 has installed on your machine.

How to install a package in Python? ›

Installing Python Packages with Setup.py

To install a package that includes a setup.py file, open a command or terminal window and: cd into the root directory where setup.py is located. Enter: python setup.py install.

How to install pip in Python in PyCharm? ›

Install packages from repositories
  1. Start typing the package name in the Search field of the Python Package tool window. ...
  2. Expand the list of the available versions in the upper-right corner of the tool window. ...
  3. Click the Install with pip or Install with conda button next to the version list. ...
  4. If needed, click.
Feb 13, 2023

How to run Python in terminal? ›

The python or python3 command followed by the full file name with the file extension will run the python file in the terminal. For example, enter 'python main.py' or 'python3 main.py' in the terminal. Pass Arguments: If your python script requires arguments, the arguments can be passed after the 'python main.py'.

Top Articles
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 5744

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.