Created
September 8, 2019 02:33
-
-
Save rogersdepelle/f1c306b9e71092bccbdb1a4e91112949 to your computer and use it in GitHub Desktop.
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
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.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice script man, did helps me a lot