Last active
July 1, 2019 17:21
-
-
Save rssanders3/3567713847a39971698f99b6c4d7a14c 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 /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