Adil
Adil

Reputation: 2538

ModuleNotFoundError for 'win32api' even pypiwin32 is installed

I am using Windows10 and my python version 3.6.5 Its giving me error 'win32api'

import win32com.client Traceback (most recent call last): File "", line 1, in import win32com.client File \Programs\Python\Python36-32\lib\site-packages\win32com__init__.py", line 5, in import win32api, sys, os ModuleNotFoundError: No module named 'win32api'

pypiwin32 is already installed

Upvotes: 0

Views: 239

Answers (1)

Adil
Adil

Reputation: 2538

It seems we need to restart the Python shell after installing the package pypiwin32. After restarting the shell, it worked.

Upvotes: 0

Related Questions