Created
September 6, 2017 13:42
-
-
Save narulkargunjan/a408439b732d3dac562edd8dbe91bb16 to your computer and use it in GitHub Desktop.
Installing python2.7 on CentOS which already is dependent on python 2.6
This file contains 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
#Run as root | |
yum groupinstall "Development tools" | |
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel | |
# --no-check-certificate Optional | |
cd /opt | |
wget --no-check-certificate https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz | |
tar xf Python-2.7.6.tar.xz | |
cd Python-2.7.6 | |
./configure --prefix=/usr/local | |
make && make altinstall | |
# Using /usr/local/bin/python2.7 you will be able to invoke python2.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment