Created
June 8, 2019 14:25
-
-
Save peerasan/96030ce1c126d06347e21f0c99dd9ea5 to your computer and use it in GitHub Desktop.
Compile Python
This file contains 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
apt-get install build-essential checkinstall | |
apt-get 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.7.0/Python-3.7.0.tgz | |
tar xzf Python-3.7.0.tgz | |
cd Python-3.7.0 | |
./configure --enable-optimizations | |
make install # replace default python | |
make altinstall #used to prevent replacing the default python binary file /usr/bin/python. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment