How to Install Python on Windows 11

To install Python on Windows 11, get the Python Install Manager from the Microsoft Store or python.org/downloads. After it installs, open Terminal or Command Prompt and type python. If no version is installed yet, the manager downloads the latest stable Python for you, which is Python 3.15.0 (released October 9, 2026).

These steps cover Windows 11 on standard and ARM PCs, which don’t include Python. They also work on Windows 10, which Python 3.15 supports but Microsoft no longer updates.

The old full installer with “Add python.exe to PATH” is deprecated and won’t be made for Python 3.16.

Get Online for Python Downloads

  • An internet connection: the manager downloads each Python version the first time you need it.
  • Your own account: Python’s documentation says the Install Manager installs Python versions per user, so each Windows account on the PC sets up its own.
  • S mode or app restrictions: if your PC is in S mode or set to allow only Store apps, use the Microsoft Store version. Here’s how app installation restrictions work in Windows.
  • Work or school PCs: your IT team may block installs or provide its own Python. Ask them first.

How to Install Python on Windows 11

Illustration of steps to install Python on Windows 11
Illustration: the steps to install Python with the Install Manager.
  1. Open the Microsoft Store, search for Python Install Manager, and select Get or Install. Or open the python.org Windows downloads page, select Download Python install manager, double-click the file, and select Install. Python’s documentation says the two versions are identical. The Install Manager is now on your PC.
Microsoft Store web listing for Python Install Manager by Python Software Foundation with Download highlighted and View in Store beside it
Choose Python Install Manager from Python Software Foundation. The Store app uses Install. (Recreated interface)
  1. Open Terminal or Command Prompt. (If you haven’t used it before, here’s how to open Command Prompt in Windows 11.) A command window opens.
  2. Type python and press Enter. The first time, the manager downloads and installs the latest Python, then starts it. You see a line with the version number and a >>> prompt.
  3. If the manager asks whether to add its folder to your PATH, say yes if you want version commands like python3.15 to work everywhere. It is optional if you use py or python.
Command Prompt showing Python 3.15.0 starting after the Install Manager installs it
The first python command installs the latest version and opens the Python prompt.
  1. Type exit() and press Enter to leave the Python prompt. Python is ready to use.

To run the manager’s optional configuration checker later and accept its suggested changes, use py install –configure -y. After installing, the python, py, and pymanager commands should all work.

If the PC is in S mode and you need the python.org installer, here is how to exit S mode in Windows 11 first.

Prefer the Command Line?

Python’s documentation gives a winget command that installs the Install Manager itself. Open PowerShell or Terminal and run winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-interactivity, then run py install --configure -y to finish setup.

Microsoft’s Python setup guide uses a different winget command, winget install Python.Python.3.14, which installs one specific version as a regular app instead of through the manager. Close and reopen PowerShell afterward and check it with python --version.

If that PowerShell window turns out to be an older version, you can update PowerShell on Windows 11 with a similar winget command.

Check That It Works

  • python –version prints the version that the python command runs, such as Python 3.15.0.
  • python starts the Python prompt. Type exit() to leave.
  • py list shows the versions you have installed and which one is the default.
  • python my-script.py runs a script from the current folder. JavaScript projects use a different runtime, and the setup is covered in installing Node.js on Windows 11.
Command Prompt excerpt showing python --version output Python 3.15.0 and py list with a default 64-bit Python 3.15.0 runtime
Run python --version and py list to check the installed runtime. Your version can differ. (Recreated interface)

Which Python Version Should You Use?

For learning and new projects, the newest release is the right choice. A brand-new release can take a few weeks before every third-party package supports it. If a package fails to install on 3.15, or your course or job names a version, install that version next to it (see below). You do not need to remove the newer one. XAMPP for Windows also bundles a specific PHP version, so installing XAMPP on Windows 11 starts with picking the build your project needs.

Use the Full Installer Only If You Need It

Some tutorials and older tools still expect the classic installer. It is deprecated, so use it only when something requires it.

  1. On python.org, open the release page for the version you need and download Windows installer (64-bit). ARM-based PCs use Windows installer (ARM64).
  2. Double-click the file. On the first screen, check Add python.exe to PATH.
Two classic Python full-installer controls with Install Now highlighted and Add python.exe to PATH checked, with the install path hidden
For the classic full installer, check Add python.exe to PATH before Install Now. These separate shared-control details follow the verified installer labels; intervening options are omitted and the install path is hidden in gray.
  1. Select Install Now and approve the permission prompt if one appears.
  2. If the last screen offers Disable path length limit, select it, then select Close.
  3. Open a new Command Prompt and run python –version to confirm.

Do not mix this installer with the Install Manager for the same version, because the two can compete for the python and py commands.

Open IDLE, Python’s Built-In Editor

IDLE is Python’s editor and interactive shell, and it comes with the full Python runtime. See the official IDLE guide for more.

  1. In Command Prompt, run python -m idlelib. The IDLE Shell window opens.
  2. Type print("Hello") and press Enter to test it.
IDLE Shell excerpt with print("Hello") entered at the prompt and Hello printed below
Type print("Hello") at the IDLE Shell prompt and press Enter. Startup details are outside the excerpt and colors can vary with the theme. (Recreated interface)
  1. To write a script, choose File > New File, type your code, and save it with a .py extension.
  2. Select Run > Run Module to run the script.

For bigger projects, many people use Visual Studio Code with Microsoft’s Python extension, which Microsoft’s setup guide walks through. Many coding courses also expect Git for version control, and installing Git on Windows 11 takes one installer or one winget command.

Install or Repair pip

Python from python.org and the Install Manager includes pip, the tool that installs packages. If pip is missing or broken, use these supported pip installation methods:

  1. In Command Prompt, run python -m pip --version. If it shows a version and a Python path, pip is installed.
  2. If pip is missing, run python -m ensurepip --upgrade.
  3. Upgrade it with python -m pip install --upgrade pip.
  4. Run python -m pip --version again to confirm.

If pip alone says it is not recognized but python -m pip works, run py install --refresh and make sure the manager’s folder is on your PATH. If ensurepip doesn’t work, download get-pip.py from the official link in the pip documentation. Open Command Prompt in the folder where you saved it (for example, cd /d "%USERPROFILE%\Downloads") and run python get-pip.py. Inside a virtual environment, use that environment’s Python instead.

Install Another Version

Illustration of useful Python commands on Windows 11
Illustration: useful commands after installing.

The Python docs recommend the py command when you have more than one version. Use py install 3.14 (or another version number) to add a version, then start it with py -V:3.14. Run py list –online to see which versions you can install. The Install Manager updates itself automatically, but that does not change the Python versions you have installed.

Use a Virtual Environment for Projects

  1. In your project folder, run python -m venv .venv. A .venv folder is created.
  2. Activate it with .venv\Scripts\activate. Your prompt shows the environment name.
Command Prompt in C Projects demo folder after creating .venv and running its activate.bat script, showing the .venv prefix
The (.venv) prefix shows that the virtual environment is active. It does not show PowerShell. (Recreated interface)
  1. Install packages with pip install while it is active. Packages stay inside that project.
  2. Type deactivate when you are done.

If PowerShell says running scripts is disabled, activate the environment from Command Prompt instead, where the command is .venv\Scripts\activate.bat. Python’s venv documentation also describes the PowerShell execution policy setting that allows Activate.ps1 for your account. The Python docs recommend a virtual environment for each project so packages do not clash. To use Python for browser-based notebooks, here’s how to install Jupyter Notebook on Windows 11.

Add Python to PATH Later

The Install Manager puts its commands in %LocalAppData%\Python\bin by default. To add that folder yourself:

  1. Search Start for Edit environment variables for your account.
  2. Select Path under User variables, then choose Edit > New.
  3. Paste the folder path.
Edit environment variable window with New highlighted and a selected example user Path entry C Users Alex AppData Local Python bin
Select New and add the install manager’s bin folder to your user Path. Use your own %LocalAppData%\Python\bin location instead. (Recreated interface)
  1. Close and reopen Command Prompt, then run where python to see which installation runs.

If you used the older full installer instead, add the folder that contains python.exe and its Scripts subfolder as two separate entries. Here are other ways of opening environment variables in Windows 11.

If the python Command Does Not Work

  • It opens the Microsoft Store or says command not found: click Start, open Manage app execution aliases, and make sure the aliases for Python (default) are on. If App Installer entries for python.exe and python3.exe are also on, turn those off. If the right aliases already are on, turn them off and on again.
App execution aliases page in Windows 11 Settings with the Python aliases turned on
Turn on the Python (default) aliases if python opens the Microsoft Store.
  • Check py and pymanager: if those work, the problem is the python alias or your PATH.
  • py says it can’t open a file: an older Python launcher is installed and takes priority. Uninstall Python launcher from Settings > Apps > Installed apps.
  • A package’s command is not found after pip install: run py install –refresh, then open a new window.
  • python and py run different versions: run py list to see the default, then remove versions you no longer need.
  • Older installs: if you installed Python before, or changed your PATH, you may need to remove the old version or undo those changes.

How to Uninstall Python

Before you remove Python, note which projects or virtual environments need that version. For versions installed with the Python Install Manager:

  1. Run py list to see the installed versions and their tags.
  2. Run py uninstall 3.15, replacing 3.15 with the tag you want to remove, and confirm.
  3. Run py list again to check that it’s gone.

For a version installed with the older full installer, open Settings > Apps > Installed apps, find the Python version, select the three dots next to it, and choose Uninstall. Uninstalling the Install Manager app alone leaves its Python versions installed, as Python’s Windows documentation notes. To remove every managed version, run py uninstall --purge before you remove the app.

Python Install Questions

Is Python free?

Yes. Python and the Install Manager are free from python.org and the Microsoft Store.

Should I use python or py?

The docs recommend python for everyday use and py when you need to pick a specific version or manage installs.

What if a package install fails because a path is too long?

Windows limits most file paths to 260 characters unless long paths are turned on. Python’s Windows documentation explains how: turn on the Enable Win32 long paths group policy, or set the LongPathsEnabled registry value to 1, then restart. Both need administrator rights.

Does uninstalling the Install Manager remove Python?

No. The Python docs say uninstalling the Install Manager does not uninstall the Python versions it installed.

Will Python work on an ARM-based Windows 11 PC?

Yes. python.org publishes ARM64 builds of Python 3.15, including an ARM64 full installer.

If your class still uses an older C++ compiler, here’s how to run Turbo C++ on Windows 11 with DOSBox.