ImportError: no module named win32api

I am using Python 2.7 and I want to use pywin32-214 on Windows 7. I installed pywin32-214 using the MSI installer. But when I import win32api into my Python script, it throws an error:

no module named win32api. 

What should I do? Can i use pywin32 api for windows 7?

+49
python winapi
Jan 24 '14 at 22:39
source share
6 answers

This is the solution to my case found on Where can I find the win32api module for Python?

 pip install pypiwin32 
+106
Mar 11 '16 at 19:43
source share
โ€” -

I had an identical problem that I solved by restarting my Python editor and shell. I installed PyWin32, but the new modules were not raised until the restarts.

If you have already done this, search your Python installation for "win32api" and you should find win32api.pyd under $ {PYTHON_HOME} \ Lib \ site-packages \ win32.

+16
Aug 21 '14 at 3:42 on
source share

Open a command prompt in windows and enter the following command

pip install pypiwin32

+6
Jul 01 '17 at 8:47
source share

I solved this by installing the pypiwin32 module:

 pip install pypiwin32 
+5
Aug 14 '17 at 12:42 on
source share

In window 8.1 we can solve this problem by installing pypiwin32

Try the following command:

Command line

+5
Nov 13 '17 at 6:59
source share

I did not find the package of the most voted answer in my Python 3 dist.

I had the same problem and decided to install the pywin32 module:

In regular python:

 pip install pywin32 

In the anaconda:

 conda install pywin32 

My python installation (Intelยฎ Distribution for Python) had some kind of dependency problem and gave this error. After installing this module, it stops appearing.

+2
May 16 '17 at 21:43
source share



All Articles