问题如下:
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
Collecting click (from pyqt5-tools)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting pyqt5==5.15.9 (from pyqt5-tools)
Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
Collecting pyqt5==5.15.4 (from pyqt5-tools)
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Temp\pip-build-env-ab704l9g\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Temp\pip-build-env-ab704l9g\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\AppData\Local\Temp\pip-build-env-ab704l9g\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
self.apply_user_defaults(tool)
File "C:\Users\AppData\Local\Temp\pip-install-go0msyw7\pyqt5_db4b02feb60f42c4a93d6e24f3e570e7\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\AppData\Local\Temp\pip-build-env-ab704l9g\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\AppData\Local\Temp\pip-build-env-ab704l9g\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\AppData\Local\Temp\pip-build-env-ab704l9g\overlay\Lib\site-packages\pyqtbuild\builder.py", line 50, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
安装不上pyqt5-tools就无法运行对应的代码,但是又安装不上,网络上现有的解决方法都没有办法解决我这个问题,请教下大神们有思路吗