python 2.7.6 Archives - Justin Silver https://www.justinsilver.com/tag/python-2-7-6/ Technology, Travel, and Pictures Sat, 22 Mar 2014 05:14:26 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.1 https://www.justinsilver.com/wp-content/uploads/2013/06/cropped-apple-touch-icon-160x160.png python 2.7.6 Archives - Justin Silver https://www.justinsilver.com/tag/python-2-7-6/ 32 32 Upgrade Python on CentOS https://www.justinsilver.com/technology/linux/upgrade-python-centos/?utm_source=rss&utm_medium=rss&utm_campaign=upgrade-python-centos https://www.justinsilver.com/technology/linux/upgrade-python-centos/#respond Fri, 21 Mar 2014 22:29:41 +0000 http://justin.ag/?p=3337 The version of python that is distributed with CentOS is the same of that for RHEL, which reads as not cutting edge. Typically this will be version 2.6, so even to run 2.7.6 you...

The post Upgrade Python on CentOS appeared first on Justin Silver.

]]>
AmpedSense.OptimizeAdSpot('AP'); AmpedSense.OptimizeAdSpot('IL'); AmpedSense.OptimizeAdSpot('IR');

The version of python that is distributed with CentOS is the same of that for RHEL, which reads as not cutting edge. Typically this will be version 2.6, so even to run 2.7.6 you will need to build from source, but can still leverage yum to fetch all the dev tools you’ll need to build upgraded version of python. Here is how to upgrade python on CentOS for both 2.7 and 3.3. Tweak the version as you wish since newer versions will become available after this is posted.

Python 2.7.6

Downloads Python-2.7.6.tar.xz and builds it.

#!/usr/bin/sh

mkdir -p ~/python2.7
cd ~/python2.7
yum groupinstall -y development
yum install -y bzip2-devel openssl-devel sqlite-devel wget xz-libs zlib-dev 
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
xz -d Python-2.7.6.tar.xz
tar -xvf Python-2.7.6.tar
cd Python-2.7.6
./configure --prefix=/usr/local
make && make install

Python 3.3.3

Same same but different. Python-3.3.3.tar.xz.

#!/usr/bin/sh

mkdir -p ~/python3.3
cd ~/python3.3
yum groupinstall -y development
yum install -y bzip2-devel openssl-devel sqlite-devel wget xz-libs zlib-dev 
wget http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz
xz -d Python-3.3.3.tar.xz
tar -xvf Python-3.3.3.tar
cd Python-3.3.3 
./configure
make && make install

The post Upgrade Python on CentOS appeared first on Justin Silver.

]]>
https://www.justinsilver.com/technology/linux/upgrade-python-centos/feed/ 0