在Linux/Unix下安裝Python通常會有兩種方式,第一種是透過套件管理程式安裝,第二種則是原始碼安裝,以下分別用Ubuntu/Arch Linux做示範。
sudo apt-get update
sudo apt-get install python3
python3 --version
sudo pacman -Ss python3
python3 --version
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
tar xvf "Python3-3.4.3.tar.xz"
cd "Python3-3.4.3"
./configure
make
make test
sudo make install
python3 --version