Skip to content

Instantly share code, notes, and snippets.

@bbchriscesar
Created June 1, 2019 06:03
Show Gist options
  • Select an option

  • Save bbchriscesar/3d89c70788489d43d182c2538d79f437 to your computer and use it in GitHub Desktop.

Select an option

Save bbchriscesar/3d89c70788489d43d182c2538d79f437 to your computer and use it in GitHub Desktop.
Step 1 – Prerequsite is
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \ libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
Step 2 – Download Python 3.7
cd /usr/src
sudo wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
Now extract the downloaded package.
sudo tar xzf Python-3.7.3.tgz
Step 3 – Compile Python Source
cd Python-3.7.3
sudo ./configure --enable-optimizations
sudo make altinstall
make altinstall is 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