@pythonMyLife

Как скачать win32gui на Windows 11 c Python 3.10?

У меня стоит Windows 11 с Python 3.10.0, pip 22.0.4. pywin32:
Name: pywin32
Version: 303
Summary: Python for Window Extensions
Home-page: https://github.com/mhammond/pywin32
Author: Mark Hammond (et al)
Author-email: mhammond@skippinet.com.au
License: PSF
Location: c:\users\errma\appdata\roaming\python\python310\site-packages
Requires:
Required-by:


При запуске pip install win32gui:
...
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "C:\Users\errma\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
          main()
        File "C:\Users\errma\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\errma\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\errma\AppData\Local\Temp\pip-build-env-7g6azkbv\overlay\Lib\site-packages\setuptools\build_meta.py", line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "C:\Users\errma\AppData\Local\Temp\pip-build-env-7g6azkbv\overlay\Lib\site-packages\setuptools\build_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "C:\Users\errma\AppData\Local\Temp\pip-build-env-7g6azkbv\overlay\Lib\site-packages\setuptools\build_meta.py", line 281, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\errma\AppData\Local\Temp\pip-build-env-7g6azkbv\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 27, in <module>
          from win32.distutils.gui import win32gui_build_ext
        File "C:\Users\errma\AppData\Local\Temp\pip-install-q1m1y_iy\win32gui_1bbf420bae6242c6b9530a842796097b\win32\distutils\gui.py", line 6, in <module>
          from .command import win32_build_ext
      ModuleNotFoundError: No module named 'win32.distutils.command'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


Буду рад любой помощи.
  • Вопрос задан
  • 1465 просмотров
Пригласить эксперта
Ответы на вопрос 1
YouReTs
@YouReTs
Установи pywin32. Это даст возможность использовать win32gui.

pip install pywin32
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы