Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WyattJia/5a50e994d29da5d5a21839ba8e277634 to your computer and use it in GitHub Desktop.
Save WyattJia/5a50e994d29da5d5a21839ba8e277634 to your computer and use it in GitHub Desktop.
Install python 3.6.4 from source on Ubuntu.
sudo apt install build-essential checkinstall
sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar -xzvf Python-3.6.4.tgz
cd Python-3.6.4/
./configure --enable-optimizations
sudo make altinstall
python3.6 -m pip install virtualenv
cd ..
rm -rf Python-3.6.4/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment