Download Python from the official website

Go to python.org in your web browser. Click the large yellow button labeled "Download Python" — it will automatically detect your Windows version and offer the latest stable release. You'll land on a download page showing the most recent version number (currently 3.12 or 3.13, depending on when you're reading this).

Click the button that says "Download Python [version number]" to save the installer file to your computer. The file will be named something like python-3.12.0-amd64.exe if you're on a 64-bit system, or python-3.12.0.exe on 32-bit Windows. Most modern Windows machines are 64-bit, so the first option is what you want.

If you need a different version — perhaps because a specific project requires Python 3.9 or 3.10 — scroll down on the python.org homepage to find "All Releases" and select the version you need. Each release page has its own download links.

Key Takeaways

  • Download the installer from python.org, not from third-party sites, to avoid bundled software or outdated versions.
  • During installation, check the box that says "Add Python to PATH" — this lets you run Python from any folder in your command prompt.
  • The default installation folder (usually C:\Users\[YourName]\AppData\Local\Programs\Python) works fine for most people.
  • After installation, open Command Prompt and type python --version to confirm Python is working.

Run the installer and choose your settings

Open your Downloads folder and double-click the .exe file you just downloaded. A window will appear asking whether to "Install Now" or "Customize Installation." For most people, "Install Now" is the right choice — it installs Python in the default location with standard settings.

If you choose "Install Now," the installer will ask for permission to make changes to your computer. Click "Yes" and wait for the installation to finish. This usually takes less than a minute.

If you want to change where Python is installed or select specific features, click "Customize Installation" instead. The next screen lets you choose which optional components to include — pip (a tool for installing Python packages) and tcl/tk (needed for some graphical programs) are both checked by default and should stay checked. On the following screen, you can change the installation folder if you prefer, but the default location works fine.

Add Python to your PATH during installation

The most important step happens on the first installer screen. At the bottom left, there is a checkbox that says "Add Python [version] to PATH". Check this box before clicking "Install Now" or "Customize Installation."

PATH is a list of folders where Windows looks for programs when you type a command in Command Prompt. If Python is not in your PATH, you'll have to type the full folder location every time you want to run it. Checking this box saves you that trouble.

If you already installed Python without checking this box, you can fix it: uninstall Python through Settings > Apps > Apps & Features, find Python in the list, click it, and select "Uninstall." Then download and run the installer again, making sure to check the PATH box this time.

Verify the installation worked

Once the installer finishes, open Command Prompt. Press the Windows key, type cmd, and press Enter. A black window will open with a blinking cursor.

Type python --version and press Enter. If Python is installed correctly, you'll see output like Python 3.12.0 (or whatever version you installed). If you see an error message like "python is not recognized," it means the PATH was not set correctly — go back to the section above and reinstall with the PATH box checked.

You can also type python by itself and press Enter to start the Python interactive shell. You'll see a prompt that looks like >>>. Type print("Hello") and press Enter to test it. Type exit() to leave the shell and return to the normal Command Prompt.

Choose a text editor or IDE to write code

Python is now installed, but you'll need a place to write your code. You have several options, ranging from simple to feature-rich. Visual Studio Code (a free text editor from Microsoft) is popular for beginners — download it from code.visualstudio.com, install it, then add the Python extension from the Extensions menu inside VS Code.

PyCharm Community Edition is a full development environment built specifically for Python and is also free. It's heavier than VS Code but includes more built-in tools. Download it from jetbrains.com/pycharm.

For the simplest option, you can write Python code in Notepad (the basic text editor that comes with Windows), save the file with a .py extension, and run it from Command Prompt by typing python filename.py. This works fine for learning, though you won't get helpful features like syntax highlighting or error checking.

Install packages with pip if you need them

Python comes with a standard library of built-in tools, but many projects use additional packages — code libraries written by other people that add extra features. The tool for installing these packages is called pip, and it was installed automatically when you checked the PATH box.

To install a package, open Command Prompt and type pip install package-name. For example, pip install requests installs a popular package for downloading web pages. Pip downloads the package from the Python Package Index (pypi.org) and installs it on your computer. You can then use that package in your Python code by typing import requests at the top of your script.

If a pip command fails with an error, the most common cause is that pip itself is out of date. Update it by typing python -m pip install --upgrade pip.

Troubleshooting common installation problems

If Command Prompt says "python is not recognized as an internal or external command," Python is either not installed or not in your PATH. Reinstall Python and make sure the "Add Python to PATH" box is checked. After reinstalling, close and reopen Command Prompt — Windows needs to reload the PATH list.

If you see "Permission denied" when trying to install a package with pip, you may be running Command Prompt without administrator rights. Right-click Command Prompt in the Start menu and select "Run as administrator," then try the pip command again.

If you installed Python but want to switch to a different version, you don't have to uninstall the old one. You can have multiple Python versions on the same computer. To run a specific version, use py -3.9 (for Python 3.9) or py -3.12 (for Python 3.12) instead of just python. This requires the Python Launcher, which installs automatically if you check the "Add Python to PATH" box.

Frequently Asked Questions

Should I download Python 2 or Python 3?

Download Python 3. Python 2 stopped receiving updates in 2020 and is no longer supported. All new projects use Python 3, and nearly all learning resources assume you're using Python 3. If you're working on a very old project that specifically requires Python 2, ask the project maintainers — but this is rare.

What's the difference between 32-bit and 64-bit Python?

Most Windows machines are 64-bit, and the python.org download button will offer you the 64-bit version automatically. If you're unsure, go to Settings > System > About and look for "System type" — it will say "64-bit operating system" or "32-bit operating system." Download the matching version. If you have a 64-bit Windows machine, always choose 64-bit Python.

Can I uninstall Python and reinstall it later?

Yes. Go to Settings > Apps > Apps & Features, find Python in the list, click it, and select "Uninstall." Windows will remove it completely. You can download and install it again anytime using the same steps in this guide. Any code files you wrote will remain on your computer — uninstalling Python doesn't delete your scripts.

Do I need to restart Windows after installing Python?

No, but you do need to close and reopen Command Prompt. Windows loads the PATH list when Command Prompt starts, so if you install Python and immediately open Command Prompt, it won't know where Python is yet. Close the window and open a new one, and it will work.

Is it safe to download Python from python.org?

Yes. python.org is the official website maintained by the Python Software Foundation, a nonprofit organization. It's the only place you should download Python from. Other websites may offer Python bundled with extra software or modified versions that don't work the same way.