This guide walks you through installing Python 3 on Windows, from downloading the official installer to verifying it works. You’ll learn the correct options to select, how to avoid common pitfalls, and what to do if something goes wrong. By the end, you’ll have a working Python environment ready for scripting, data analysis, or web development.
What You’ll Need
- A Windows PC (Windows 10 or 11 recommended; Windows 8.1 also works)
- Administrator rights on that PC (to install system-wide)
- An internet connection to download the installer
- About 200 MB of free disk space
Step-by-Step
- Download the installer. Open your web browser and go to the official Python downloads page at
python.org/downloads. Click the yellow button that says “Download Python 3.x.x” (the exact version number changes over time). This downloads the 64-bit Windows installer. - Run the installer. Locate the downloaded file (usually in your Downloads folder) and double-click it. If Windows shows a User Account Control prompt, click “Yes” to allow it to make changes.
- Check the critical box. At the very bottom of the first installer window, check the box that says “Add Python 3.x to PATH”. This is the most important step — it lets you run Python from the command line. If you skip this, you’ll have to fix it later.
- Choose your install type. For most users, click “Install Now” — this installs Python to your user folder with the recommended settings. If you want to install for all users or change the location, click “Customize installation” instead, but the default is fine for beginners.
- Wait for the installation to finish. The installer will show a progress bar. It usually takes less than a minute. When it’s done, you’ll see a screen that says “Setup was successful.” Click “Close.”
- Verify the installation. Open a command prompt by pressing
Win + R, typingcmd, and pressing Enter. Typepython --versionand press Enter. You should see something likePython 3.12.4. If you see an error, see the Troubleshooting section below. - Test the interactive shell. In the same command prompt, type
pythonand press Enter. You’ll see a>>>prompt. Typeprint("Hello, World!")and press Enter. It should printHello, World!. Typeexit()to leave. - Optionally install pip packages. Python comes with pip (the package installer). To test it, type
pip --versionin the command prompt. If it shows a version number, you’re all set to install packages likenumpyorrequests.
Common Mistakes
- Forgetting to check “Add Python to PATH” — This is the #1 mistake. Without it, typing
pythonin the command prompt won’t work. If you already installed without it, re-run the installer, choose “Modify,” and check the PATH option. - Downloading the wrong version — The website may offer both 32-bit and 64-bit versions. Choose the 64-bit one unless you have a very old 32-bit Windows system.
- Installing from the Microsoft Store — While the Store version works, it can behave differently (e.g., the command is sometimes
python3instead ofpython). Stick with the official installer for consistency. - Not closing and reopening the command prompt — If you opened the command prompt before installing, it won’t see the new PATH changes. Close and reopen it.
Tips
- Use a virtual environment for each project. This keeps dependencies separate and avoids version conflicts. Create one with
python -m venv myenv, then activate it withmyenv\Scripts\activate. - Keep Python updated — New versions come out roughly every year. You can re-run the installer to upgrade without losing your packages (though a fresh install is often cleaner).
- Install a good code editor — VS Code, PyCharm, or even Notepad++ will make coding much easier than the default IDLE. They also integrate with Python and pip.
- Use the
pylauncher — If you have multiple Python versions, thepycommand (e.g.,py -3.12) lets you choose which one to run.
Troubleshooting
- “python is not recognized as an internal or external command” — This means PATH wasn’t set. Re-run the installer, select “Modify,” and ensure “Add Python to environment variables” is checked. Alternatively, manually add Python’s folder (e.g.,
C:\Users\YourName\AppData\Local\Programs\Python\Python312\) to your system PATH via System Properties > Environment Variables. - Installer fails with an error — Try running the installer as Administrator (right-click > Run as administrator). Also, temporarily disable antivirus software if it blocks the installation, then re-enable it.
- Python opens the Microsoft Store — This happens when Windows finds a stub instead of the real Python. Either install from the Store (which works), or fix your PATH to point to the real Python installation.
- pip not found — If
pipdoesn’t work, you can install it manually by runningpython -m ensurepip --upgradein the command prompt. - “This app can’t run on your PC” — This usually means you downloaded the 32-bit installer on a 64-bit system or vice versa. Download the correct architecture from python.org.
Frequently Asked Questions
Do I need to uninstall the old Python version first?
No, you can have multiple versions installed side by side. The py launcher lets you choose which one to use. However, for simplicity, beginners may want to uninstall older versions to avoid confusion.
What’s the difference between Python 3 and Python 2?
Python 2 is obsolete and no longer supported. Python 3 is the current standard. Always install Python 3.x (e.g., 3.12 or 3.13).
Can I install Python on Windows 7?
Python 3.9 was the last version to support Windows 7. If you have Windows 7, you can install Python 3.8 or 3.9, but you should upgrade your OS for security reasons.
What is PATH and why does it matter?
PATH is a system variable that tells Windows where to look for executables. Adding Python to PATH lets you type python from any directory. Without it, you’d have to type the full path to python.exe every time.
How do I update Python later?
Download the new installer from python.org and run it. It will detect the existing installation and offer to upgrade. Your installed packages will remain, but it’s often safer to create a fresh virtual environment for new projects.
Why does the installer offer a “Customize installation” option?
This lets you change the install location, include or exclude optional features (like IDLE, pip, and the documentation), and choose to install for all users. The default is fine for most people.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Voice Dictation in Google Docs: How to Use It
- Turn Off Message Notifications on Mac