ImportError: No module named win32api

Alex Martelli aleax at aleax.it
Thu Oct 10 04:18:40 EDT 2002


eddie wang wrote:

> Hi, I was trying to run a python script from my DOS prompt. I got the
> following error message:
> E:\>installer.py
> Traceback (most recent call last):
>   File "E:\installer.py", line 101, in ?
>     import win32api, win32file
> ImportError: No module named win32api
> 
> Can anyone tell me what this error message means? My OS is Windows XP.
> is win32api something that's only available on windows2000, but not on
> XP?

win32api should work fine on XP just as it does in Win2K, but it's
not part of the stsndard Python distribution.  You can download it
from the page of its author, Mark Hammond:

http://starship.python.net/crew/mhammond/win32/Downloads.html

Be sure to download the right version -- e.g. latest stable one
for Python 2.2 is:

http://starship.python.net/crew/mhammond/downloads/win32all-148.exe

Each win32all version is a self-unpacking, self-installing executable.


Alex




More information about the Python-list mailing list