I just upgraded from Python 2.5 to 2.6.
Most of the things work,
but I'm struggling with one issue,
when I start Python in a command window,
it still uses Python 2.5.
Is there a way to get Python 2.6 as my default Python environment ?
thanks,
Stef Mientki
It's a matter of replacing C:\Python25 with C:\Python26 in your PATH
environment variable, which is what the Windows command processor uses
to fined executable programs. It's normal to add both the directory the
interpreter lives in /and/ its Scripts subdirectory, so you may have
two replacements to make. See
http://www.python.org/doc/faq/windows/
for more. If anyone has any good updates to that document I'll be happy
to make them (or give you permission to make them ...). It was written a
long time ago, and I'm not sure it's had much love. In particular
there'll not be anything relating to Windows 7.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
Additionally if you're using ActivePython, you do not even have to
fiddle with PATH because:
1) C:\PythonXY (and %APPDATA%\Python\Scripts) is automatically added to
%PATH%.
2) "python.exe" is also available as "python26.exe", so you can simply
type "python26" in the console to get Python 2.6 (if another version of
ActivePython/Python is already installed).
-srid