[Tutor] How Can Install Python 2.0 and 2.1 on the same machine?

Rob Andrews robnospam@jam.rr.com
Wed, 23 May 2001 06:44:30 -0500


Karim Yaici wrote:
> 
> Hi,
> Don't blame me for asking this question, but I could not make the
> installation of Python 2.1 on the top of  Python 2.0 under windows
> possible. I've got some packages that require Python 2.0 but whenever I
> install Python 2.1 (on a different directory), it takes over the control of
> py, pyc and pyw.
> 
> Thank you...
> 
> Karim
> PS: sorry, but I am still a sinner as I am currently using Windows Me. I'll
> make a move someday ;-)
> 

I use several flavors of Windows, as well as having about 20 linux &
Unix machines here, so you're not the only Windows user alive. (ME,
though?) heehee

In Windows, only one application can own any given file association
(unless I'm just mistaken), so you have to choose which Python install
will automagically run a .py script if you double-click it (or similar).
This is the natural way of things, as it keeps Windows from choking
itself in confusion.

I may be wrong, but I'd wager that if you had a copy of myprogram.py in
your C:\Python21 folder (even if C:\Python20 owned the file
association), and you go to your command prompt (DOS prompt, as some
still call it), cd into C:\Python21 and tell it to

C:\Python21 > python myfile.py

Then the Python installed in that folder will execute the script by that
name.

I've had less than one cup of coffee yet, so I might have made all this
up by mistake,

Rob
-- 

You should have listened when your mother warned you about
Useless Python!
http://www.lowerstandard.com/python/pythonsource.html