Last active
July 12, 2017 02:38
-
-
Save Shellbye/de8e8c61ddda78960502dcf0fb11f89f to your computer and use it in GitHub Desktop.
Install python on Ubuntu
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
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