1

I'm using Python 3.7 with Pycharm. I've installed the pywin32 package for this project because win32api isn't compatible with Python 3.7+.

import win32con
import win32gui

I'm trying to import these modules with pywin32 installed but this doesn't work. The problem only started happening after I uninstalled and reinstalled Pycharm and had to reinstall all my packages for this project. I'm using the exact same interpreter as I was before. Why would this be happening?

Hydra
  • 373
  • 3
  • 18

1 Answers1

1

There is a post installation step to follow:

To install pywin32 system files, run python.exe Scripts/pywin32_postinstall.py -install from an elevated command prompt.

Did you run this command?

See also https://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32

romaingz
  • 421
  • 2
  • 6