When I try to:
from win32com.client import Dispatch
in Python I get the error:
Traceback (most recent call last): File "", line 1, in from win32com.client import Dispatch File "C:\Users\Lynn\Documents\2e master\masterproef\python\lib\site-packages\win32com__init__.py", line 5, in import win32api, sys, os ImportError: No module named win32api
I already tried to copy the files pythoncom27.dll
and pythonwintypes27.dll
to python\lib\site-packages\win32
and python\lib\site-packages\win32com
but that didn't help.
I've installed pywin32-217.win32-py2.7.‌exe
from http://www.lfd.uci.edu/~gohlke/pythonlibs/
I've also already searched for duplicated files with no success either.
I've installed other packages (numpy, ...) before and they all worked perfectly.
I'm using Python 2.7