Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7937

Re: Python 2.7.2 for Windows reports version as 2.7.0?

Date 2011-06-19 12:03 +1000
From Mark Hammond <skippy.hammond@gmail.com>
Subject Re: Python 2.7.2 for Windows reports version as 2.7.0?
References <1308358550.17680.1464439673@webmail.messagingengine.com> <BANLkTimLcJNV2+P8HVRoYPRDJihu7oP1yw@mail.gmail.com> <1308368168.21764.1464464325@webmail.messagingengine.com>
Newsgroups comp.lang.python
Message-ID <mailman.138.1308449081.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 18/06/2011 1:36 PM, python@bdurham.com wrote:
> Hi Benjamin,
>
>> The file info is seems correct but I just checked the MSI and it's
> reporting that it's 2.7.2. How exactly are you running python.exe and
> IDLE- are you calling the full path, just calling "python" and using
> whichever python version is first on your path, or are you using an
> entry in the start menu? The only thing I can think of is that your
> 2.7.0 install is in a different location than your 2.7.2 install. So
> 2.7.2 installed correctly but you're still running the old one.
>
> Within the folder where the python.exe exists, I have tried the
> following, all of which report Python 2.7.0 vs. 2.7.2
>
> python
> python.exe
> c:\python27
>
> Confirming I'm running what I think I'm running:
>
>>>> import sys
>>>> sys.hexversion
> 34013424
>>>> sys.executable
> 'C:\\Python27\\python.exe'
>>>>
>
> And confirming the exe files in my Python27 folder:
>
>   Directory of C:\Python27
>
> 06/12/2011  03:09 PM            26,624 python.exe
> 06/12/2011  03:06 PM            27,136 pythonw.exe
>
> Anyone else having the same experience?
>
> Malcolm

The version info comes from the DLL - I wonder if the DLL being found is 
somehow old?

Make sure:

 >>> import sys
 >>> win32api.GetModuleFileName(sys.dllhandle)

Is the DLL you expect.

Mark

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 2.7.2 for Windows reports version as 2.7.0? Mark Hammond <skippy.hammond@gmail.com> - 2011-06-19 12:03 +1000

csiph-web