Python is currently the most popular programming language in the world with millions of developers using it for tasks such as Web Development, Data Science, Machine Learning, and so on.
In this tutorial, I will guide you the first step in your Python journey: how to download and install Python on Windows.
I will keep it easy and simple for a beginner to follow. Let's get started!
Table of Contents
Follow these steps to install Python on Windows:
- Installing Python on Windows
- Verifying if Python was Installed Successfully
- Adding Python to the PATH Environment Variable (optional)
- Starting Your Python Journey
- Conclusion
1. Installing Python on Windows
Follow the steps below to install Python on Windows:
- Visit the Python download page for Windows.
- You can choose Latest Python 3 Release - Python 3.x.x for the latest version. I suggest you to choose Python 3.9.x or Python 3.10.x.
- Scroll down to the bottom and select Windows installer (64-bit) if your computer is 64-bit, or Windows installer (32-bit) otherwise.
Figure: Download Python for Windows - After downloading the Python installer (python-3.x.x-amd64.exe), open it to begin the installation. Remember to check those boxes and click Install Now:
- [✓] Install launcher for all users (recommended)
- [✓] Add Python 3.x to PATH.
Figure: Install Python on Windows
- Wait for the installation to complete. Choose Disable path length limit if it shows up.
Figure: Python Setup Successfully - Restart your computer. Then verify if Python was installed successfully in the next section.
2. Verifying if Python was Installed Successfully
Open your Command Prompt, type in python --version
(or python3 --version
) and press Enter.

If Python was installed successfully on Windows, the output should be the Python version like above.
In case you get one of the following errors:
- 'python' is not recognized as an internal or external command, operable program or batch file.
- Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
You need to add Python to the PATH environment variable. Read through the next section to know how to do it.
3. Adding Python to the PATH Environment Variable
To fix the errors mentioned above, you need to add Python to the PATH environment variable. Follow these steps:
- Press Windows key and search for Edit the system environment variables.
- Click Environment Variables.
- Under System variables, select Path and click Edit.
- Click New and add the path to the Python folder. The default path is
C:\Users\{your-username}\AppData\Local\Programs\Python\Python3x
(replacePython3x
with your Python version). In my case, the path isC:\Users\Desmond\AppData\Local\Programs\Python\Python39
. - Click OK to save the changes.
- Restart your computer. Go back to the previous section and verify if Python was installed successfully.
4. Starting Your Python Journey
Now, you can use your command prompt to test some lines of Python code.
From your Command Prompt, type in python
and press Enter, and then the interactive Python will appear on the console.
You can type in some Python code like print("Hello, World!")
and press Enter to see the output.

FYI, most developers choose to use IDEs (Integrated Development Environments) or Text Editors such as Visual Studio Code, PyCharm, etc. Try some of them and get the most out of your coding experience.
Conclusion
To recap, in this tutorial, you have learned how to install Python on Windows in 4 easy steps:
- Downloading Python for Windows.
- Installing Python on Windows.
- Verifying if Python was installed successfully.
- Adding Python to the PATH environment variable (optional).
Good luck with your Python journey!