Skip to content

Instantly share code, notes, and snippets.

@Shellbye
Last active July 12, 2017 02:38
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 Shellbye/de8e8c61ddda78960502dcf0fb11f89f to your computer and use it in GitHub Desktop.
Save Shellbye/de8e8c61ddda78960502dcf0fb11f89f to your computer and use it in GitHub Desktop.
Install python on Ubuntu
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
version=2.7.13
cd /tmp
wget https://www.python.org/ftp/python/$version/Python-$version.tgz
tar -xvf Python-$version.tgz
cd Python-$version
./configure --enable-shared --enable-unicode=ucs4
sudo make
sudo make install
sudo wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install virtualenv
python -V
pip freeze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment