pywin32
pywin32 copied to clipboard
No Module named 'pywintypes'
Here is the output when I try to run a script:
Traceback (most recent call last):
File "C:\Users\foo\Python\Python35\outlooktest.py", line 1, in
Package was instralled from pypi through pip.
Also had to modify the init script for win32com by changing the line import win32pi, sys, os to two lines:
from win32 import win32api import sys, os
Reported by: jbarker2160
Original Ticket: pywin32/bugs/755
Sadly installing via pip has issues due to the fact it doesn't run the postinstall script. You could try manually running "python pywin32_postinstall.py -install"
Original comment by: mhammond
First, I haven't seen this issue on win_amd64. Second, @Mark Hammond Python has implemented PEPs (cannot recall numbers off the top of my head) that explicitly discourage postinstall scripts, due to a number of issues that wheel was designed to solve.
Original comment by: xaav
Sadly installing via pip has issues due to the fact it doesn't run the postinstall script. You could try manually running "python pywin32_postinstall.py -install"
Original comment by: mhammond
I executed that command successfully and still same errors occurs.
I have an amd64 bit and I'm having the same issue.
@jbarker2160 @GEOJOEco Can you confirm if you still have this issue specifically on the most recent version of pywin32 (306 as of writing this comment), on Python >= 3.8, installing from pip ? As well as an updated traceback log if you get one.