|
发表于 2022-9-25 01:56:56
|
显示全部楼层
请教安装 win32gui库文件报错
E:\python> pip3.exe install win32gui
Collecting win32gui
Downloading win32gui-221.5.tar.gz (605 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 605.3/605.3 kB 2.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\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\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_require
s_for_build_wheel
return hook(config_settings)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4iya2ckl\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_buil
d_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4iya2ckl\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4iya2ckl\overlay\Lib\site-packages\setuptools\build_meta.py", line 482, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4iya2ckl\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 27, in <module>
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-lu8wr7yb\win32gui_acabe2d937d147e585c07ad9b405a1d9\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.
|
|