Re: using python 2.5
- From: Dave Angel <davea@xxxxxxxx>
- Date: Tue, 22 Sep 2009 03:12:58 -0400
kunal.k wrote:
I have installed python 2.5 for a particular code. Now i have 2.6I can think of two different questions you might be asking. 1) How do I get the add-on modules installed with 2.6 to also work in 2.5? or 2) How do I get a particular script to use 2.5, while all other scripts should use 2.6 ?
already installed. How do i direct this code to use the 2.5 modules??
Sean answered #1, but I think you meant to ask #2
First question is what OS you've installed these on. In Windows, the python version is selected by file associations, while in Unix/Linux systems, it's selected by the shebang line at the beginning of the script.
A generic answer if you just have one script is to make an OS script (bat file, or shell script) that invokes the particular python interpreter, passing it the script name as an argument).
But if you want to be able to just run the script as though it were a compiled executable, tell us what OS you're on, and maybe the base locations of your two installations.
DaveA
.
- References:
- using python 2.5
- From: kunal.k
- using python 2.5
- Prev by Date: Hi, SOAP lib for Python 3.0
- Next by Date: Re: easy question, how to double a variable
- Previous by thread: Re: using python 2.5
- Next by thread: expy 0.2 released!
- Index(es):
Relevant Pages
|
Loading