Python is a high-level, interpreted programming language known for its readability and versatility. It's used everywhere from web development and data science to automation and artificial intelligence. Before you start, did you know you can run Python code directly in your browser? Give our Online Python Compiler a try!
Windows Installation
Step 1: Download the Installer
Visit the official Python website at python.org and download the latest version for Windows based on your system architecture (32-bit/64-bit/arm64).
Step 2: Run the Installer
Open the downloaded `.exe` file.
Important: Check the box that says "Add Python to PATH" before clicking "Install Now". This makes it easier to run Python from the command prompt.
Step 3: Verify the Installation
Open Command Prompt and type the following command:
python --version
If installed correctly, you will see the Python version printed.
Installing Python on macOS
Option 1: Official Installer (Recommended)
Download the macOS installer from the python.org website. Open the downloaded `.pkg` file and follow the installation instructions.
Option 2: Using Homebrew
If you are a more advanced user and have Homebrew installed, you can run:
brew install python
Step 3: Verify the Installation
Open Terminal and type:
python3 --version
You should see the installed Python version.
Installing Python on Linux
Most Linux distributions come with Python pre-installed. You can check by running:
python3 --version
If it's not installed, or you want to update it, use your distribution's package manager.
For Debian/Ubuntu:
sudo apt update && sudo apt install python3
For Fedora:
sudo dnf install python3
For Arch Linux:
sudo pacman -S python
What's Next?
Congratulations! You have successfully installed Python. Now you are ready to start coding.
You can start by writing your first script, or by exploring our Online Python Compiler to practice without any local setup.