Skip to content

Instantly share code, notes, and snippets.

@rogersdepelle
Created September 8, 2019 02:33
Show Gist options
  • Save rogersdepelle/f1c306b9e71092bccbdb1a4e91112949 to your computer and use it in GitHub Desktop.
Save rogersdepelle/f1c306b9e71092bccbdb1a4e91112949 to your computer and use it in GitHub Desktop.
cd /tmp
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
sudo apt update
sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev
tar -xf Python-3.7*.tar.xz
cd Python-3.7.4
./configure --enable-loadable-sqlite-extensions # Avoid an error in sqlite
make
sudo make altinstall
sudo python3.7 -m pip install --upgrade pip
sudo python3.7 -m pip install --upgrade setuptools
echo 'Done. Type python3.7 to run.'
@JnsFerreira
Copy link

Nice script man, did helps me a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment