System Installation
Arch
sudo pacman -Syyu python python-pip python-setuptools # or, sudo pacman -Syyu python2 python2-pip python2-setuptools
Older versions are available on the AUR as python37, python36, python26, etc.
Debian
sudo apt install python3 python3-virtualenv python3-venv python3-setuptools python3-pip # or, sudo apt install python python-virtualenv python-venv python-setuptools python-pip
Debian patches out the ensurepip module to enforce apt package control.
Ubuntu
A default version of Python should work out-of-the-box. For alternate versions, use the deadsnakes PPA:
sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt install python#.#