What is the best way to upgrade to Python 2.6 from the default Python 2.4.
I'm running CentOS 5 --> Linux mybox.domain.com 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I've read these horror stories online and don't want to break yum.
On 05/08/12 8:09 AM, Rogelio wrote:
What is the best way to upgrade to Python 2.6 from the default Python 2.4.
install your python 2.6 in a nonstandard location, such as /opt/something or /usr/local/something, and keep it out of the path of any system stuff, use it only for your own purposes.
On 05/08/12 8:28 AM, John R Pierce wrote:
install your python 2.6 in a nonstandard location
to clarify this, if you were to actually 'replace' the default python, you'd likely break YUM and many other features of CentOS that are implemented in Python.
On Tue, May 8, 2012 at 8:09 AM, Rogelio scubacuda@gmail.com wrote:
What is the best way to upgrade to Python 2.6 from the default Python 2.4.
I'm running CentOS 5 --> Linux mybox.domain.com 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I've read these horror stories online and don't want to break yum.
I installed python 2.7 on my CentOS-5 box by following this:
http://blog.milford.io/2012/01/building-and-installing-python-2-7-rpms-on-ce...
It will not touch the existing 2.4.
Akemi
On 08.05.2012 16:09, Rogelio wrote:
What is the best way to upgrade to Python 2.6 from the default Python 2.4.
I'm running CentOS 5 --> Linux mybox.domain.com 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I've read these horror stories online and don't want to break yum. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
The EPEL repo provides python26 which doesn't conflict with stock python.
Am 08.05.2012 17:09, schrieb Rogelio:
What is the best way to upgrade to Python 2.6 from the default Python 2.4.
I'm running CentOS 5 --> Linux mybox.domain.com 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I've read these horror stories online and don't want to break yum.
You care for your yum (which is good!), but why don't you use it? At least your kernel is old and vulnerable.
Alexander
What is the best way to upgrade to Python 2.6 from the default Python
2.4.
I've read these horror stories online and don't want to break yum.
Hi. At least there are 2 ways that I have tried and work.
The first: yum install gcc tcl tk sqlite-devel readline-devel gdbm-devel yum install tkinter ncurses-devel libdbi-devel tk-devel zlib-devel yum install openssl-devel bzip2-devel cd /opt # Python 2.7 so django and mod_wsgi work. wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz tar -xzvf Python-2.7.3.tgz ./configure
make
make altinstall prefix=/opt/python2.7.3 cd /opt # Use a link for easier administration if you need to upgrade python2.7 later. ln -s /opt/python2.7.3 /opt/python2.7 # Add this alias to your /etc/bashrc file for all users or your ~/.bashrc file for yourself. alias python2.7='/opt/python2.7/bin/python2.7' make altinstall will install the new Python as Python2.7; it will not collide with your default Python (2.4.x in CentOS 5.x, 2.6.6 in CentOS 6.2). You run it using "python2.7" instead of "python".
The second uses virtualenv as environment manager ( http://code.activestate.com/pypm/virtualenv/). I use it for a particular application, again no conflict with Python 2.4 under CentOS 5.6/7/8, or Python 2.6 in CentOS 6.2. These are the versions I have tried.