Python Installation Guide
Getting Started with Python 3
Step 1: Download the Installer
The first step for any operating system is to visit the official Python website. They provide installers that handle most of the configuration automatically.
- Navigate to:
https://www.python.org/downloads/ - Click the large button that says "Download Python 3.X.X" for your specific OS (Windows, macOS).
Installing on Windows
- Run the Executable: Double-click the downloaded
.exeinstaller file. - Check the PATH Box (Crucial!): At the very first screen of the installer, look for the checkbox at the bottom that says "Add python.exe to PATH" and make sure it is checked. This saves you a lot of manual setup later.
- Choose Installation: Select "Install Now" for the default setup, which includes IDLE (a basic editor), pip, and documentation.
- Finish: Click "Close" when the setup is complete.
Installing on macOS
- Run the Package: Double-click the downloaded
.pkgfile to start the installer. - Follow Prompts: Proceed through the installer screens (Introduction, License, Destination Select, Installation Type).
- Enter Password: You may need to enter your administrative password to allow the installation.
- Check Documentation: The installer will place the Python 3 framework and supporting files in the appropriate locations.
Installing on Linux (Package Manager)
Most Linux distributions come with Python pre-installed, but you might need a newer version or the developer libraries. Use your distribution's package manager:
For Debian/Ubuntu:
sudo apt update && sudo apt install python3
For Fedora/CentOS:
sudo dnf install python3
Step 2: Verify the Installation
Open your command line (Terminal, Command Prompt, or PowerShell) and run the following command to ensure Python is ready to use:
python --version
You should see the version number displayed (e.g., Python 3.14.0). If that doesn't work, try python3 --version.