Win32 Python - Pythoncom Error - ImportError: No Module Named Pywintypes
I am trying to import pythoncom, but it gives me this error: Traceback (most recent call last): File 'F:/Documents and Settings/Emery/Desktop/Python 27/Try', line 2, in impo
Solution 1:
If you are using an IDE like I am (PyCharm), you should go the where the Python is installed e.g C:\Users\***\AppData\Local\Programs\Python\Python37\Lib\site-packages
In this folder check for the folder name pywin32
. Copy that folder and paste it to C:\Users\***\PycharmProjects\project\venv\Lib\site-packages
. After that restart your IDE, then it will import the pywin32
as it did in my case. I hope it helps.
Post a Comment for "Win32 Python - Pythoncom Error - ImportError: No Module Named Pywintypes"