Skip to content

Instantly share code, notes, and snippets.

@rssanders3
Last active July 1, 2019 17:21
Show Gist options
  • Select an option

  • Save rssanders3/3567713847a39971698f99b6c4d7a14c to your computer and use it in GitHub Desktop.

Select an option

Save rssanders3/3567713847a39971698f99b6c4d7a14c to your computer and use it in GitHub Desktop.
cd /opt
sudo wget --no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
tar xf Python-2.7.9.tar.xz
cd Python-2.7.9
./configure --prefix=/usr/local
make && make altinstall
ls -ltr /usr/local/bin/python*
vi ~/.bashrc
#Add this line `alias python='/usr/local/bin/python2.7'`
#To force everyone to use this version of python, add `alias python='/usr/local/bin/python2.7'` to the `/etc/bashrc` file
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment