Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install win32gui

Tags:

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...

like image 733
ItayMiz Avatar asked Oct 14 '18 20:10

ItayMiz


People also ask

What is win32gui in Python?

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.

Could not find a version that satisfies the requirement pywin32 from versions none?

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.


Video Answer


2 Answers

Install pywin32. That gives you win32gui.

pip install pywin32

like image 70
bronson Avatar answered Sep 19 '22 01:09

bronson


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.

EDIT:

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.

like image 23
Legorooj Avatar answered Sep 17 '22 01:09

Legorooj