Skip to content

Instantly share code, notes, and snippets.

@MichaelCurrin
Last active June 5, 2025 04:55
Show Gist options
  • Save MichaelCurrin/57caae30bd7b0991098e9804a9494c23 to your computer and use it in GitHub Desktop.
Save MichaelCurrin/57caae30bd7b0991098e9804a9494c23 to your computer and use it in GitHub Desktop.
How to install Python 3

How to install Python 3

Links:

How to install:

  • Debian/Ubuntu (for other Linux distros, see this Gist).
    1. Install using apt-get.
      $ sudo apt-get update
      $ sudo apt-get install python3  # OR python3.12
    2. Recommended - install development extensions (C headers necessary for some packages) and pip (for installing packages globally).
      $ sudo apt-get install python3-dev python3-pip
  • macOS
    1. Install Brew.
    2. Install Python using Brew:
      $ brew install python@3  # OR [email protected]
    3. Make your the Brew executables bin directory is in your PATH variable.
  • Windows
    1. Download Python from the Windows Download page.
    2. Run the installer. Make sure to check the box to have Python added to your PATH if the installer offers such an option (it's normally off by default).

For managing multiple versions of Python, you can use pyenv to install and switch between versions.

For more details, see this Gist - Set up a Python 3 virtual environment.

@A9-rgb
Copy link

A9-rgb commented Jun 5, 2025

namastaa thank you welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment