-
Open a Web Browser: Open your preferred web browser and go to the official Python website: Python Downloads.
-
Download Python: Click on the "Downloads" tab and select the version of Python you want. Choose the latest version marked as "Latest Python 3 Release."
-
Run the Installer: Once the installer is downloaded, double-click on the downloaded file (python-3.x.x.exe) to run the installer.
-
Configure Python: During the installation, make sure to check the box that says "Add Python to PATH." This makes it easier to run Python from the terminal.
-
Complete Installation: Follow the prompts in the Python Installer. Click "Install Now" to start the installation process.
-
Verify Installation: Open a new Command Prompt and type
python --version
You should see the installed Python version.
-
Open Terminal: Open the Terminal application. You can find it using Spotlight by pressing Cmd + Space and typing "Terminal."
-
Install Homebrew (if not installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Python using Homebrew:
brew install python -
Verify Installation: Type the following command to check the installed Python version with
python3 --version
-
Open Terminal: Open a terminal window by pressing Ctrl + Alt + T.
-
Update Package List:
sudo apt-get update -
Install Python:
sudo apt-get install python3 -
Verify Installation: Type the following command to check the installed Python version:
python3 --version
-
Open Terminal: Open a terminal window by pressing Ctrl + Alt + T.
-
Install Python:
sudo dnf install python3 -
Verify Installation: Type the following command to check the installed Python version:
python3 --version