close

[Solved] Import: No module named win32com.client

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Import: No module named win32com.client 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 win32com.client Error Occurs?

Today I get the following error Import: No module named win32com.client in python.

How To Solve Import: No module named win32com.client Error ?

  1. How To Solve Import: No module named win32com.client Error ?

    To Solve Import: No module named win32com.client Error I realize this post is old but I wanted to add that I had to take an extra step to get this to work.

  2. Import: No module named win32com.client

    To Solve Import: No module named win32com.client Error I realize this post is old but I wanted to add that I had to take an extra step to get this to work.

Solution 1

pip install pywin32 didn’t work for me but pypiwin32 did.

Solution 2

I realize this post is old but I wanted to add that I had to take an extra step to get this to work.

Instead of just doing:

pip install pywin32

I had use use the -m flag to get this to work properly. Without it I was running into an issue where I was still getting the error ImportError: No module named win32com.

So to fix this you can give this a try:

python -m pip install pywin32

This worked for me and has worked on several version of python where just doing pip install pywin32 did not work.

Versions tested on:

3.6.2, 3.7.6, 3.8.0, 3.9.0a1.

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