[Tutor] some web and python version questions

Dave Angel davea at davea.name
Mon Mar 4 18:29:27 CET 2013


On 03/04/2013 11:30 AM, Lolo Lolo wrote:
> Hey all, i am running python 3.0 but i realized a lot of modules that support version 3 do not support 3.0. now i want to install Python 3.3 but im worried the two versions (3.0 and 3.3) might confuse my machine. i don't want to lose my work in 3.0 and i installed some modules and saved some work in that version. Im on Windows, and my main worry is confusing my PC and making it get the versions mixed up. i also want to leave room to install version 2 if i ever need to but ill cross that bridge when i get there. For now i want to know if i have to delete version 3.0 before installing 3.3?
>

It's also a good idea to specify your OS and version.  I'm going to 
guess you're running Windows, XP or Win7.

I'd migrate off of Python 3.0 as soon as possible.  It was the buggiest 
version out there.  Not surprising because it was the first version of 
some major rewriting.  Anyway, 3.3 not only has more features, but the 
implementation has been greatly cleaned up.

Python 3.3 will definitely install independently of 3.0 on Windows. It's 
only the minor versions that happen in place, like going from 3.3 to 3.3.1

The catches are that:
   1) any 3rd party libraries you've installed in 3.0's install 
directory will need to be reinstalled in the new directory.
   2) Only one of the two can be the "default" installation.  That's a 
choice you make while installing the new one, either to keep the old 
version as default, or to make the new one default.  Windows registry 
entries may have to change if you later change your mind about the default.

Python 3.3 on Windows does come with a version detector, where it 
installs a stub in the Windows directory, and that stub examines the 
shebang line of your main script to figure out which version of Python 
to run.  I've never used it, since it came out after I had stopped using 
Windows.

If you're running your scripts explicitly, by something like:
     python  myscript.py

then you should be able to say
      python3.3  myscript.py
or   python3.0  myscript.py

to be explicit.  These are just batch files, and you can add more to 
suit your requirements.


> Also i want to learn web development ....
>
I can't help here.


-- 
DaveA


More information about the Tutor mailing list