'ModuleNotFoundError: No module named 'win32gui
sorry for potentially asking stupid questions but I am newbie, learning Python from YT videos.
I need to use Ptwin32 extension, and use the libraries there.
EDIT: using Windows 10
Dowloaded "pywin32-300.win-amd64-py3.9" from here "https://github.com/mhammond/pywin32/releases"
Using python 3.9.1 and PyCharm 2020.3.1.
On the beginning of my program I write:
import win32gui
import win32con
and then I get the message "ModuleNotFoundError: No module named 'win32gui'"
Tried to search for solutions but nothing worked so far.
Thx in advance for help. Loonak
Solution 1:[1]
Go to your terminal and say either pip install win32gui or pip3 install win32gui(Try the other one if one of these 2 don't work)
Happy Coding!
Solution 2:[2]
I had the same problem & py -m pip install win32gui didn't solve it,
finally it was fixed using py -m pip install pywin32 as @Kenny Ostrom advised
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Srishruthik Alle |
| Solution 2 | RDR |
