[python-win32] Can't see Python27.dll on Win 7

Bill Janssen janssen at parc.com
Tue Nov 23 21:04:22 CET 2010


Tim Roberts <timr at probo.com> wrote:

> Bill wrote:
> >
> >So I went to look in c:/Windows/System32/, and sure enough, there it is:
> >
> >$ file /c/Windows/System32/python27.dll
> >/c/Windows/System32/python27.dll: PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit
> >$
> 
> On 64-bit Windows, 32-bit DLLs need to be installed in C:\Windows\SysWOW64, not C:\Windows\System32.  Yes, that's not a typo.

Well, it's the Python installer that's doing the installing; I assume
it's doing it correctly.  In fact, when I look at C:\Windows\SysWOW64, I
can see python27.dll.

> When a 32-bit application refers to System32, the operating system
> automatically rewrites the path to SysWOW64.  Now, if your Cygwin is a
> 32-bit app, it could be getting fooled as well.

So, if I "cd" to "/c/Windows/System32", and do "ls -l python27.dll",
it's really looking at "/c/Windows/SysWOW64" instead?  That's why I see
it with msys's "ls" and "file", but not with cmd.exe and "dir", or
depends.exe?

> I suggest you start up a command shell and see where the file really
> lives.  If it really lives in system32, you'll need to move it.

Looks like it's in C:\Windows\SysWOW64\, as it should be.

Thanks, Tim.

Bill


More information about the python-win32 mailing list