2👍
According to here, to install pywin32 system files, run python.exe Scripts\pywin32_postinstall.py -install
from an elevated command prompt.
For example, this works for me: "C:\Programs\Python\Python3\CPython\x64\Python35\python.exe" "C:\Programs\Python\Python3\CPython\x64\Python35\Scripts\pywin32_postinstall.py" -install
.
0👍
It looks like Python can’t properly locate the libraries you’re trying to import. Doing a clean python install may solve the issue. However, instead of doing that, you could try the following:
I’ve seen this problem happen before when a python installation failed to copy pywintypes27.dll
and pythoncom27.dll
to the win32
folder, please try doing this:
- Go to
C:\Python27\Lib\site-packages\pywin32_system32
- Copy
pywintypes27.dll
andpythoncom27.dll
- Paste them in
C:\Python27\Lib\site-packages\win32
For future reference, if this works, how did you install Python?
Source:stackexchange.com