close

[Solved] Import: no module named win32api

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Import: no module named win32api in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Import: no module named win32api Error Occurs?

Today I get the following error Import: no module named win32api in python.

How To Solve Import: no module named win32api Error ?

  1. How To Solve Import: no module named win32api Error ?

    To Solve Import: no module named win32api Error If you've already done that, do a search in your Python installation for win32api and you should find win32api.pyd under ${PYTHON_HOME}\Lib\site-packages\win32.

  2. Import: no module named win32api

    To Solve Import: no module named win32api Error If you've already done that, do a search in your Python installation for win32api and you should find win32api.pyd under ${PYTHON_HOME}\Lib\site-packages\win32.

Solution 1


I had an identical problem, which I solved by restarting my Python editor and shell. I had installed pywin32 but the new modules were not picked up until the restarts.

If you’ve already done that, do a search in your Python installation for win32api and you should find win32api.pyd under ${PYTHON_HOME}\Lib\site-packages\win32.

Solution 2


According to pywin32 github you must run

    pip install pywin32

and after that, you must run

    python Scripts/pywin32_postinstall.py -install

I know I’m reviving an old thread, but I just had this problem and this was the only way to solve it.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read