Created
January 3, 2018 09:15
-
-
Save WyattJia/5a50e994d29da5d5a21839ba8e277634 to your computer and use it in GitHub Desktop.
Install python 3.6.4 from source on Ubuntu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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