Fedora: Dual Python Versions Installed System Not Picking Up Newer Version

Aahz aahz at pythoncraft.com
Thu Apr 2 22:01:13 CEST 2009


In article <3103e4c6-831f-4408-947b-4bb0dddf012b at s22g2000prg.googlegroups.com>,
*nixtechno <epctechno at gmail.com> wrote:
>
>I have a fedora box and just installed python 2.6.1 along with 2.5.2,
>so here's my issue, if I removed the "systems" garbage RPM it would
>uninstall all the other crap along with it, so I went ahead and
>trunked in and ./configure, build && build install and built python
>2.6.1 along with this. However how can I stipulate that I want the
>WHOLE system to use Python 2.6.1 rather than 2.5.2? I know there is
>something to do with PATH, which I tried under my /root/.cshrc file,
>but to no avail it didn't work. So is there something special I should
>do with getting the system to pick up this directy:

This is a Bad Idea; some of the system scripts rely on the built-in
Python.  You should either use a shell alias or explicitly specify the
full path to the 2.6.1 binary inside your scripts.  I think virtualenv
might also be useful, but I haven't played with that myself yet.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it."  --Brian W. Kernighan



More information about the Python-list mailing list