I'm trying to install win32gui with pip but I get an error:
C:\Users\משתמש>pip install win32gui Collecting win32gui Using cached https://files.pythonhosted.org/packages/b8/75/7bed82934e51903f9d48b26b3996161bb2dce1731607b4bb7fd26003ed3e/win32gui-221.5.tar.gz Installing build dependencies ... done Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\temp\pip-install-ycidig8u\win32gui\setup.py", line 27, in <module> from win32.distutils.gui import win32gui_build_ext File "c:\temp\pip-install-ycidig8u\win32gui\win32\distutils\gui.py", line 6, in <module> from .command import win32_build_ext ModuleNotFoundError: No module named 'win32.distutils.command' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in c:\temp\pip-install-ycidig8u\win32gui\
I'm using python 3.7 I've upgraded the setuptools but it is still not working...
A module which provides an interface to the native win32 GUI API. Note that a module winxpgui also exists, which has the same methods as win32gui, but has an XP manifest and is setup for side-by-side sharing support for certain system DLLs, notably commctl32.
To fix the error, remove both pywin32 and pywinpty from lines 72 and 73 of your requirements. txt file. Make sure to upload any datasets (including California_Fire_Incidents. csv ) used in your app to the GitHub repo.
Install pywin32. That gives you win32gui.
pip install pywin32
Win32gui isn't compatible with 3.7.
3.7 was realeased in 2018 and the latest version of win32gui was released in August 2017.
I would suggest installing 3.6 or lower as a workaround.
The answer by @bronson beat me to it by 9 days, but installing pywin32
with pip install pywin32
will install win32gui
alongside modules for interfacing with windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With