云梦编程网

当前位置:首页 > Python >

pycharm安装PyQt6-tools不成功

作者:佚名 时间:2024-03-12 18:36:29 阅读:(191)

最近在学习python时,安装pyqt6-tools插件一直提示失败查找了很多网友介绍的方法还是没有解决,接下来云梦编程就为大家介绍一下pycharm安装PyQt6-tools不成功的处理方法有需要的小伙伴可以参考一下:

pycharm安装PyQt6-tools不成功

1、错误提示:

pycharm安装PyQt6-tools不成功

详细错误内容如下:

 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:\Python3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in 
          main()
        File "C:\Python3\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:\Python3\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\admin\AppData\Local\Temp\pip-build-env-lkjtei6n\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-lkjtei6n\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-lkjtei6n\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
          self.apply_user_defaults(tool)
        File "C:\Users\admin\AppData\Local\Temp\pip-install-apg_oc1d\pyqt6_d09a61123d3e4ac6aa04211e681adfe0\project.py", line 60, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-lkjtei6n\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-lkjtei6n\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-lkjtei6n\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, 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.

2、错误原因:

经过各种排查发现是因为安装的Python的版本太高了导致和pyqt6-tools的版本不兼容,具体的可以在官网https://pypi.org/project/pyqt6-tools/#description看到pyqt6-tools最高支持的版本

pycharm安装PyQt6-tools不成功

3、解决方法:

下载安装对应版本的Python,也就是针对现有的python进行降级处理。并添加到Pycharm中解释器中,再去按步骤安装pyqt6-tools插件即可


以上就是云梦编程为大家介绍的关于python安装pyqt6-tools失败处理方法的全部内容了,了解更多相关文章请关注云梦编程网!

最新文章

热门文章