[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using two versions of Python



On Fri, Feb 04, 2005 at 08:54:47PM -0500, Edward C. Jones wrote:
> I have the package "python2.3_2.3.4+2.3.5c1-1_i386.deb" on my Debian sid 
> system.  I also compiled the Python tarball. It is in "/usr/local".  I 
> would like all of the code that I have written to use Python 2.4 without 
> messing up all the Debian packages that use 2.3. My programs all contain 
> "#! /usr/bin/env python".  I would prefer not to change them all. How 
> can I do this?
> 
For some reason, my PATH variable is set so that /usr/local/bin/ is
searched before /usr/bin/. While I don't have this problem with Python
(where I have all my modules compiled for 2.3 and I don't look forward to
the headache of recompiling them for 2.4) I have programs running that I
compiled myself, and in this way, the default is to run the
self-compiled version. Are there any security considerations I am
violating? Anyway, this procedure also would give you what you want...

Andreas



Reply to: