鱼C论坛

 找回密码
 立即注册
查看: 3296|回复: 3

[已解决]pyqt5-tools安装失败

[复制链接]
发表于 2023-2-26 20:27:45 | 显示全部楼层 |阅读模式
45鱼币
  1. error: subprocess-exited-with-error

  2.   × Preparing metadata (pyproject.toml) did not run successfully.
  3.   │ exit code: 1
  4.   ╰─> [33 lines of output]
  5.       Traceback (most recent call last):
  6.         File "C:\Users\macbook\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 144, in prepare_metadata_for_build_wheel
  7.           hook = backend.prepare_metadata_for_build_wheel
  8.                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  9.       AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'

  10.       During handling of the above exception, another exception occurred:

  11.       Traceback (most recent call last):
  12.         File "C:\Users\macbook\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
  13.           main()
  14.         File "C:\Users\macbook\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
  15.           json_out['return_val'] = hook(**hook_input['kwargs'])
  16.                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  17.         File "C:\Users\macbook\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 148, in prepare_metadata_for_build_wheel
  18.           whl_basename = backend.build_wheel(metadata_directory, config_settings)
  19.                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  20.         File "C:\Users\macbook\AppData\Local\Temp\pip-build-env-54dfza1d\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
  21.           project = AbstractProject.bootstrap('wheel',
  22.                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  23.         File "C:\Users\macbook\AppData\Local\Temp\pip-build-env-54dfza1d\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
  24.           project.setup(pyproject, tool, tool_description)
  25.         File "C:\Users\macbook\AppData\Local\Temp\pip-build-env-54dfza1d\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
  26.           self.apply_user_defaults(tool)
  27.         File "C:\Users\macbook\AppData\Local\Temp\pip-install-yg_exjch\pyqt5_69b73b9b61e344a0905f2894f4965ed0\project.py", line 63, in apply_user_defaults
  28.           super().apply_user_defaults(tool)
  29.         File "C:\Users\macbook\AppData\Local\Temp\pip-build-env-54dfza1d\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
  30.           super().apply_user_defaults(tool)
  31.         File "C:\Users\macbook\AppData\Local\Temp\pip-build-env-54dfza1d\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
  32.           self.builder.apply_user_defaults(tool)
  33.         File "C:\Users\macbook\AppData\Local\Temp\pip-build-env-54dfza1d\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
  34.           raise PyProjectOptionException('qmake',
  35.       sipbuild.pyproject.PyProjectOptionException
  36.       [end of output]

  37.   note: This error originates from a subprocess, and is likely not a problem with pip.
  38. error: metadata-generation-failed

  39. × Encountered error while generating package metadata.
  40. ╰─> See above for output.

  41. note: This is an issue with the package mentioned above, not pip.
  42. hint: See above for details.
  43. WARNING: There was an error checking the latest version of pip.
复制代码


有人可以分析一下原因吗,还有解决办法

最佳答案

查看完整内容

降一下 python 的版本吧 https://blog.csdn.net/GodofNight/article/details/125906195
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2023-2-26 20:27:46 | 显示全部楼层    本楼为最佳答案   
降一下 python 的版本吧

https://blog.csdn.net/GodofNight/article/details/125906195
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2023-2-26 20:34:07 | 显示全部楼层
去官网看了,python版本太高
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2023-2-26 21:05:46 | 显示全部楼层
本帖最后由 chinajz 于 2023-2-26 21:10 编辑

有人问过这问题,用msys2安装,
  1. # pacman -Ss  qt5-tools
  2. clangarm64/mingw-w64-clang-aarch64-qt5-tools 5.15.8-1 (mingw-w64-clang-aarch64-qt5)
  3.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  4. clangarm64/mingw-w64-clang-aarch64-qt5-tools-debug 5.15.8-1 (mingw-w64-clang-aarch64-qt5-debug)
  5.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  6. mingw32/mingw-w64-i686-qt5-tools 5.15.8-1 (mingw-w64-i686-qt5)
  7.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  8. mingw32/mingw-w64-i686-qt5-tools-debug 5.15.8-1 (mingw-w64-i686-qt5-debug)
  9.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  10. mingw64/mingw-w64-x86_64-qt5-tools 5.15.8-1 (mingw-w64-x86_64-qt5)
  11.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  12. mingw64/mingw-w64-x86_64-qt5-tools-debug 5.15.8-1 (mingw-w64-x86_64-qt5-debug)
  13.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  14. ucrt64/mingw-w64-ucrt-x86_64-qt5-tools 5.15.8-1 (mingw-w64-ucrt-x86_64-qt5)
  15.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  16. ucrt64/mingw-w64-ucrt-x86_64-qt5-tools-debug 5.15.8-1 (mingw-w64-ucrt-x86_64-qt5-debug)
  17.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  18. clang32/mingw-w64-clang-i686-qt5-tools 5.15.8-1 (mingw-w64-clang-i686-qt5)
  19.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  20. clang32/mingw-w64-clang-i686-qt5-tools-debug 5.15.8-1 (mingw-w64-clang-i686-qt5-debug)
  21.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  22. clang64/mingw-w64-clang-x86_64-qt5-tools 5.15.8-1 (mingw-w64-clang-x86_64-qt5)
  23.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
  24. clang64/mingw-w64-clang-x86_64-qt5-tools-debug 5.15.8-1 (mingw-w64-clang-x86_64-qt5-debug)
  25.     A cross-platform application and UI framework (Development Tools, QtHelp) (mingw-w64)
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-4-24 23:21

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表