python 2.5 bug

Thorsten Kampe thorsten at thorstenkampe.de
Sat Aug 11 17:51:31 EDT 2007


*  (Sat, 11 Aug 2007 12:50:38 -0700)
> On 11 kol, 20:58, Thorsten Kampe <thors... at thorstenkampe.de> wrote:
> > * Laurent Pointal (Sat, 11 Aug 2007 20:09:03 +0200)
> > >  vedrandeko... at v-programs.com wrote:
> > > > On 11 kol, 11:59, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> > > >> On Sat, 11 Aug 2007 02:41:26 -0700, vedrandekovic wrote:
> > > >> > I was install Python 2.5 and uninstall Python 2.4 now I cannot run my
> > > >> > scripts, only from idle
> >
> > > IMHO Python 2.4 was registered for .py files, Python 2.5 take precedence
> > > when installed, but when Python 2.4 has been removed, it remove .py files
> > > association too (so break Python 2.5 association).
> >
> > > * manually associate .py/.pyc/.pyo files to python.exe, .pyw files to
> > > pythonw.exe.
> >
> > > * or reinstall Python 2.5 so that it re-setup ad-hoc associations.
> >
> > Yeah. Did the Original Poster mention any details about his problem.
> > Like - for instance - that he's using Windows?
> >
> Now I was restart my windows and python 2.5 also.Now everything works
> fine except python and py2exe script install ( of course something
> must destroy my day ) now when I run:
> 
> $ cd c:\Python25\Lib\site-packages\
> $ python mysetup.py py2exe
> 'python' is not recognized as an internal or external command,
> operable program or batch file.
> 
> why?

Because the directory containing python.exe is not in your path. By 
the way: the Python installation routine doesn't modify your path so 
it is likely unrelated to that.

T.



More information about the Python-list mailing list