Python is one of the most popular programming languages used for web development, data science, automation, and AI. Whether you're a beginner or an experienced developer, installing Python on your PC is the first step in your coding journey. This guide will help you install Python on Windows, macOS, and Linux with easy-to-follow steps.
To install Python, first download the latest version from the official website: Download Python
Open the downloaded python-xx.x.x.exe
file.
Check the box that says "Add Python to PATH" before clicking Install Now.
Wait for the installation to complete.
After installation, open Command Prompt (cmd) and type:
python --version
If Python is installed successfully, you will see the installed version.
If you have Homebrew installed, run:
brew install python
Alternatively, you can download the .pkg
file from the official Python website and install it manually.
Open Terminal and type:
python3 --version
sudo apt update
sudo apt install python3
sudo dnf install python3
sudo pacman -S python
python3 --version
Python is now installed on your PC! You can start coding by opening a terminal and typing python
to enter the interactive shell. If you need additional packages, install them using pip
, Python's package manager.
Happy coding! 🚀