0

I'm trying to use winshell to generate a url shortcut file, so I did: pip installed winshell

However on line 30 of the winshell.py file it requires the module win32con : my understanding is that win32con is apart of pywin32, which is already installed.

The specific error I get when trying to import win32con is:

(base) C:\Users\deana>pip install win32con
ERROR: Could not find a version that satisfies the requirement win32con (from versions: none)
ERROR: No matching distribution found for win32con

I've found a few references online and on stack exchange but nothing. running windows 11.

Jonathan Ciapetti
  • 1,261
  • 3
  • 11
  • 16
  • 1
    As you said, it is a part of `pywin32` and you also said it was already installed. Just `import win32con`. If `pywin32` is *not* installed, then `pip install pywin32`. – Mark Tolonen Dec 25 '22 at 03:44

1 Answers1

1
pip install pywin32

Happy to help.

yxzlwz
  • 156
  • 5