How to Get Python and Pip Working on Windows

To get Python and pip working on Windows, install the official Python Install Manager, open PowerShell, and launch Python from the terminal. Pip is normally included with Python. Use python -m pip to make sure package commands run through the interpreter you intend to use, and create a virtual environment for each project to keep its dependencies separate.

Older instructions that recommend choosing among fixed Microsoft Store versions or downloading get-pip.py are no longer the simplest setup. The current Python documentation recommends the Python Install Manager, available from Python.org or the Microsoft Store. The manager handles Python runtimes, while ensurepip can restore pip if a particular installation is missing it.

1. Install Python on Windows

  1. Open the official Python downloads page, or open the Microsoft Store and search for Python Install Manager. The two manager distributions are equivalent. Confirm that the publisher is Python Software Foundation, then install the app.
  2. Open a new PowerShell window. Run python --version. If no Python runtime is installed yet, the manager can install the current stable release when you first launch Python. You can also run py list to see runtimes the manager knows about.
  3. If a project specifically requires a Python version, install that version explicitly, for example py install 3.15. Check the project’s own requirements before choosing a version; the newest release is not automatically compatible with every older application.
Microsoft Store listing for Python Install Manager, showing Python Software Foundation as publisher and the Install button.
Example Store listing with the publisher name and Install button visible.

For a fresh setup, the default python command is usually enough. Verify the result with:

python --version
py list

The first command prints the interpreter version; the second lists installed runtimes. The exact version number changes as Python receives releases. To run a script from its folder, use python .\script.py. For more details about the manager, aliases, and Windows setup, see the official Python on Windows guide.

PowerShell example showing python --version returning Python 3.15.1 and py list showing an installed CPython runtime.
Example PowerShell output for checking Python and viewing installed runtimes.

2. Check pip and repair it only if needed

Check that pip is attached to the Python interpreter you just installed:

python -m pip --version

The output identifies pip and the Python version it belongs to. If the command works, you can update pip with:

python -m pip install --upgrade pip

If Python reports No module named pip, use Python’s bundled bootstrap module instead of downloading a separate script:

python -m ensurepip --upgrade

Then run the pip version check again. ensurepip uses components included with Python; it does not fetch an installer from a third-party site. Read the ensurepip documentation if you need the available options.

3. Install packages in a project environment

Installing every package globally can make projects interfere with one another. A virtual environment keeps packages in a folder for one project. In PowerShell, change to your project directory and create the environment:

py -m venv .venv
.\.venv\Scripts\Activate.ps1

After activation, PowerShell usually adds (.venv) to the prompt. Install a package with the same interpreter-bound command used above:

python -m pip install requests

Replace requests with the package name your project needs. To see what pip installed, run python -m pip show requests. When you finish working in the environment, enter deactivate. The environment remains on disk and can be activated again later.

PowerShell example creating a .venv environment in a project folder and activating it with Activate.ps1.
Example commands for creating and activating a project environment in PowerShell.

When PowerShell blocks Activate.ps1 because of its script execution policy, you do not need to change a machine-wide setting just to install a package. Call the environment’s interpreter directly instead:

.\.venv\Scripts\python.exe -m pip install requests

This runs pip inside that environment without activating it. The Python venv guide explains how environments are created and used on Windows.

PowerShell example running python -m pip install requests and displaying a generic successful installation message.
The command installs into the interpreter currently selected by the terminal; activate a project environment first to keep its packages isolated.

Fix common Python and pip problems

  • “Python was not found” or the command opens the Store: confirm the install manager is installed, then open Start and search for Manage app execution aliases. Make sure Python (default) is enabled; if it already is, toggle it off and back on to refresh the command. Then try py list. See the official Windows troubleshooting steps for other alias or runtime conflicts.
  • “pip is not recognized”: run python -m pip rather than the standalone pip command. This avoids relying on a separate Scripts folder being added to PATH.
  • Packages install into the wrong Python: compare python --version with python -m pip --version. If you maintain multiple versions, select the intended one with the Windows launcher, for example py -3.15 -m pip --version.

Once the version check and pip check both work, Windows is ready to run Python scripts and install project dependencies. The Python Packaging User Guide has additional pip and environment examples.

Leave a Comment

How to Check Hard Drive Health in Windows Server

How to Check Hard Drive Health in Windows Server

Check Windows Server disk status and reliability counters, verify SMART data when available, and separate hardware warnings from NTFS errors.

How to Add and Delete Users in Windows Server

How to Add and Delete Users in Windows Server

Create, grant admin rights to, disable, or remove local Windows Server users with Computer Management or PowerShell. Learn when to use Active Directory instead.

Set Up the Serviio Media Server on Windows Server

Set Up the Serviio Media Server on Windows Server

Install Serviio on Windows Server, share local or NAS media folders, and test DLNA playback. Learn how to check the Windows service, firewall, and Pro-only browser features.

How to Convert PNG, JPG, or BMP Images to ICO in Windows

How to Convert PNG, JPG, or BMP Images to ICO in Windows

Convert PNG, JPG, or BMP files to Windows ICO with GIMP. Prepare a square image, keep transparency when needed, add standard sizes, and check the export.

How to Clear Cache in Windows 8: A Step-by-Step Guide

How to Clear Cache in Windows 8: A Step-by-Step Guide

Clear thumbnail, DNS, Internet Explorer, Microsoft Store, Search, and Live Tile data with Windows 8’s built-in tools, and learn what each cleanup removes.

How to Remove Item Check Boxes in Windows 10 File Explorer

How to Remove Item Check Boxes in Windows 10 File Explorer

Turn off Windows 10 item check boxes in File Explorer with the View ribbon, or use Folder Options if the toggle is missing. See what changes and how to select multiple files without boxes.

Set Up VMware Workstation Pro on Windows Server

Set Up VMware Workstation Pro on Windows Server

Install VMware Workstation Pro on a compatible Windows Server host, from checking support and downloading the right build to creating your first VM.

How to Read Linux Partitions on Windows Without Formatting Them

How to Read Linux Partitions on Windows Without Formatting Them

Browse and copy Ext2, Ext3, or Ext4 files on Windows with a read-only workflow. See what Linux Reader’s free edition supports and when WSL fits.

How to Run Caddy as a Web Server on Windows Server

How to Run Caddy as a Web Server on Windows Server

Install Caddy’s native Windows binary, serve a test site, enable automatic HTTPS for a domain, and run Caddy as a Windows Server service.

How to Run Linux Docker Containers on Windows Server with Hyper-V

How to Run Linux Docker Containers on Windows Server with Hyper-V

Run Linux Docker containers alongside Windows Server by creating an Ubuntu Hyper-V VM, installing Docker Engine, and publishing a test service safely.