Skip to content

Instantly share code, notes, and snippets.

@21isenough
Last active April 3, 2021 17:19
Show Gist options
  • Save 21isenough/ca0b4f1d78662eb660d3e8d9d802a90c to your computer and use it in GitHub Desktop.
Save 21isenough/ca0b4f1d78662eb660d3e8d9d802a90c to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install prerequisits and open a tmux session
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev --fix-missing
# Download and install python
wget https://www.python.org/ftp/python/3.6.13/Python-3.6.13.tgz
sudo tar zxf Python-3.6.13.tgz
cd Python-3.6.13
sudo ./configure
sudo make -j 4
sudo make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment