Are you ready to start learning Python, but not sure how to get Python installed on your computer? Here’s a guide on how to install Python on Windows 10 so you can start programming right away.
In this tutorial, I will show you how to install Python on Windows 10 and run the interpreter in under 5 minutes.
Whether you are a beginner or an experienced programmer, this guide will walk you through the process step by step, so you can start coding in Python right away.
So, let’s get started!
Installing Python on Windows 10
The installation procedure involves three simple steps:
- Download the executable file
- Run the Executable installer
- Add Python to PATH environment variables
Step 1: Download the executable file
To install Python on Windows 10, go to https://www.python.org/downloads/ and download the latest stable version of Python.
Step 2: Run the Executable installer
Once the download is complete, you will have an executable python file with a “.exe” extension on your computer.
Run the installer and follow the prompts to install Python on your windows 10 computer.
Step 3: Add Python to PATH environment variables
During the installation, you will be asked to add python to PATH, remember to tick the “Add python.exe to PATH” as in the image below.
Then Click on Install Now.
Congratulations! Now you have python installed on your windows 10 computer.
Step 4: Verify the Python Installation
To check if your installation was successful, open the command prompt or terminal and type
python this launches the python interpreter.
You will see a prompt that looks like “>>>”. This is where you can enter your python code.
Output Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
To verify that the interpreter is working fine, let’s run a simple command to print Hello World.
Congratulations👍 on successfully running your first Python program!
You are now one step closer to becoming a proficient Python programmer. Keep up the good work and you’ll be amazed at all the amazing things you’ll be able to create with this powerful language.
To exit the Python interpreter, you can type
CTRL + Zon Windows or
CTRL + Don Linux
An alternative method for executing a Python program.
You can run Python through the Integrated Development Environment (IDLE) app that gets installed along with the Python installation.
To open the IDLE,
Go to your computer start menu and click on the IDLE (Python 3.11 64-bit) to launch the development environment.
This launches the environment which looks like the picture below;
Congratulations on starting to learn Python!
One way to get started with coding in Python is to use the Integrated Development Environment (IDLE).
IDLE is a simple and easy-to-use platform that allows you to write, run, and debug your Python code.
With IDLE, you can quickly and easily write and test your Python scripts, making it a great tool for beginners.
So go ahead and give it a try! 🤝
Installing Python3 on Linux
Many Linux distributions come with Python pre-installed.
However, the version of Python included may not be the most recent, and it may lack some packages or libraries that you require for your projects.
To check if Python is already installed on your Linux system, open a terminal window and run the command
python3 -V (“-V” must be in uppercase).
This will print the version number of Python that is installed on your system.
From the above picture, I have python 3.10.6 installed on my Linux machine.
You can install Python, or a specific version of it, by following these steps if it is not already installed:
To install Python on a Linux system, you will need to have superuser (root) privileges.
- Open a terminal window
- Update the packaged manager’s list of available packages by running:
sudo apt update
- Install Python and the packaged manager’s set of developer tools by running:
sudo apt install python3 python3-pip
- To verify that Python has been installed, run the following command:
This will print the version number of Python that was installed.
If you see an error message, check to make sure that you typed the command correctly and that you have superuser privileges.
If you want to use a specific version of Python, you can specify the version number in the command:
sudo apt install version_of_python_you_want
sudo apt install version python3.8
This installs python3.8 to your Linux machine.
Alternatively, you can also install Python from the source code by downloading it from the official Python website https://www.python.org/downloads/ and following the instructions in the README file.
Congratulations! You have successfully installed Python on windows 10 and run the interpreter in under 5 minutes. You are now ready to start exploring the powerful world of Python programming.
Whether you are a beginner looking to learn the basics or an experienced developer looking to expand your skill set, Python is a versatile and powerful language that can help you achieve your goals.
So don’t waste any more time, get started today and see what amazing things you can create with Python!
If you found this tutorial helpful, we would love to hear from you!
Looking to expand your Python knowledge by learning how to run scripts on the command line? Click the link “How to Run Python Script on the Command Line” and start mastering this crucial skill today.
Please leave a comment below to let us know your thoughts or share this tutorial with your friends and colleagues on social media.
We greatly appreciate your feedback and support, it helps us to continue creating high-quality content for our readers.