Re: [Tutor] Running multiple version of Python on 1 windows

2006-11-01 Thread Kent Johnson
Tony Cappellini wrote: > >From Kent > >>You don't say what OS you are running but under Windows it is trivial to > >>have multiple versions of Python installed, I have 2.3, 2.4 and 2.5. > >>They are each in their own directories, all in the system path. I have > >>aliases called py23, py24 and

Re: [Tutor] Running multiple version of Python on 1 windows machine

2006-11-01 Thread wesley chun
> try >import sqlite3 as sqlite # Python 2.5 > except ImportError: >from pysqlite2 import dbapi2 as sqlite i second kent's suggestion here. in fact, i ran into a very similar issue while working on the database chapter for the new edition of the book. i had 2.4.2 with pysqlite 2.1.3 on

Re: [Tutor] Running multiple version of Python on 1 windows

2006-10-31 Thread Tony Cappellini
>From Kent >>You don't say what OS you are running but under Windows it is trivial to>>have multiple versions of Python installed, I have 2.3, 2.4 and 2.5.>>They are each in their own directories, all in the system path. I have >>aliases called py23, py24 and py25 that let me launch the version I>>

Re: [Tutor] Running multiple version of Python on 1 windows machine

2006-10-30 Thread Kent Johnson
Todd Dahl wrote: > At work I have installed Python 2.4 but at home I have Python 2.5. > Until this point I didn't think nothing of it but now I have run into > a issue. > > I have some code that I have worked on at work that uses the pySQLite > module which doesn't support 2.5, yet. I can run my c

[Tutor] Running multiple version of Python on 1 windows machine

2006-10-30 Thread Todd Dahl
At work I have installed Python 2.4 but at home I have Python 2.5. Until this point I didn't think nothing of it but now I have run into a issue. I have some code that I have worked on at work that uses the pySQLite module which doesn't support 2.5, yet. I can run my code at work but I can't even