Skip to content

Instantly share code, notes, and snippets.

@peerasan
Created June 8, 2019 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peerasan/96030ce1c126d06347e21f0c99dd9ea5 to your computer and use it in GitHub Desktop.
Save peerasan/96030ce1c126d06347e21f0c99dd9ea5 to your computer and use it in GitHub Desktop.
Compile Python
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