Installing Python

Installing Python

Open your web browser and go to https://www.python.org, navigate to the Downloads section in the menu, choose your operating system and a panel with a link to download the official package will appear , as shown below:

Python install windown

choose your operating system:

  1. Windows: Click the yellow “Download Python” button (it automatically detects Windows)

  2. macOS: Select “macOS” from the downloads menu

  3. Linux: Choose “Linux” or use your distribution’s package manager

Then follow the specific instructions for your operating system. Find a detail guide on macOS installation - on macOS for installation.

For Example:

  • Windows Installation:

Double click the download .exe file. Check Add Python to PATH at the bottom of the installer window. Then click Install Now (includes IDLE, pip, and documentation). After completion, the installer will set up Python and its components. Verify installation by opening Command prompt (Win + R, OR type cmd). And type python –version` and press Enter. You should see the Python version number

  • macOS Installation:

Visit macOS for detailed macOS instaructions. Download the macOS installer from python.org. And open the .pkg file and follow the installation wizard.

Here are some common installation issues & solutions:

  1. When you see Python is not recognized

Problem: Python isn’t in your system PATH

  • Solution: Reinstall and make sure to check “Add Python to PATH”

2.When you have Permission Errors (macOS/Linux)

Solution: Use sudo with installation commands or install for your user only

Congratulations! You now have Python installed. Ready are now ready to write your first program.

Happy coding