How to install Python 3
Links:
- Python homepage
- Python docs
How to install:
- Debian/Ubuntu
- Install using apt-get.
$ sudo apt-get update $ sudo apt-get install python3 python3-venv
- Recommended - install development extensions (C headers necessary for some packages) and
pip
(for installing packages globally).$ sudo apt-get install python3-dev python3-pip
- Install using apt-get.
- macOS
- Install Brew.
- Install Python using Brew:
$ brew install python3 virtualenv
- Make your the Brew executables
bin
directory is in yourPATH
variable.
- Windows
- Download Python from the Windows Download page.
- Run the installer.
- Be sure to check the box on to have Python added to your
PATH
if the installer offers such an option (it's normally off by default).
- Be sure to check the box on to have Python added to your
For more details, see this gist - Set up a Python 3 virtual environment.
Kdk bro