<legend id='iqVuY'><style id='iqVuY'><dir id='iqVuY'><q id='iqVuY'></q></dir></style></legend>

    1. <tfoot id='iqVuY'></tfoot>

      <small id='iqVuY'></small><noframes id='iqVuY'>

      1. <i id='iqVuY'><tr id='iqVuY'><dt id='iqVuY'><q id='iqVuY'><span id='iqVuY'><b id='iqVuY'><form id='iqVuY'><ins id='iqVuY'></ins><ul id='iqVuY'></ul><sub id='iqVuY'></sub></form><legend id='iqVuY'></legend><bdo id='iqVuY'><pre id='iqVuY'><center id='iqVuY'></center></pre></bdo></b><th id='iqVuY'></th></span></q></dt></tr></i><div id='iqVuY'><tfoot id='iqVuY'></tfoot><dl id='iqVuY'><fieldset id='iqVuY'></fieldset></dl></div>
          <bdo id='iqVuY'></bdo><ul id='iqVuY'></ul>

        AttributeError:模块 'sipbuild.api' 没有 PyQt5 5.1

        时间:2023-08-07

        <i id='ix5sX'><tr id='ix5sX'><dt id='ix5sX'><q id='ix5sX'><span id='ix5sX'><b id='ix5sX'><form id='ix5sX'><ins id='ix5sX'></ins><ul id='ix5sX'></ul><sub id='ix5sX'></sub></form><legend id='ix5sX'></legend><bdo id='ix5sX'><pre id='ix5sX'><center id='ix5sX'></center></pre></bdo></b><th id='ix5sX'></th></span></q></dt></tr></i><div id='ix5sX'><tfoot id='ix5sX'></tfoot><dl id='ix5sX'><fieldset id='ix5sX'></fieldset></dl></div>

          1. <tfoot id='ix5sX'></tfoot>
              <bdo id='ix5sX'></bdo><ul id='ix5sX'></ul>
                <legend id='ix5sX'><style id='ix5sX'><dir id='ix5sX'><q id='ix5sX'></q></dir></style></legend>
                    <tbody id='ix5sX'></tbody>

                  <small id='ix5sX'></small><noframes id='ix5sX'>

                  本文介绍了AttributeError:模块 'sipbuild.api' 没有 PyQt5 5.15.0 的属性 'prepare_metadata_for_build_wheel'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我尝试安装的程序需要安装 PyQt5 5.15.0 ,这给了我这个错误.奇怪的是,最新版本的 PyQt5 (5.15.2) 可以正常安装,但是这个程序特别需要 5.15.0.

                  A program I am trying to install requires the installation of PyQt5 5.15.0 , which gives me this error. The odd thing is that the installation works fine for the latest version of PyQt5 (5.15.2), but this program requires 5.15.0 specifically.

                  命令输出:

                  Collecting PyQt5==5.15.0
                    Using cached PyQt5-5.15.0.tar.gz (3.3 MB)
                    Installing build dependencies ... done
                    Getting requirements to build wheel ... done
                      Preparing wheel metadata ... error
                      ERROR: Command errored out with exit status 1:
                       command: 'c:usersmshalappdatalocalprogramspythonpython39python.exe' 'C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py' prepare_metadata_for_build_wheel 'C:UsersmshalAppDataLocalTemp	mp41s11ev6'
                           cwd: C:UsersmshalAppDataLocalTemppip-install-sfw90hvcpyqt5_e2cc46859b554da7b84798abae5378ba
                      Complete output (31 lines):
                      Traceback (most recent call last):
                        File "C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py", line 126, in prepare_metadata_for_build_wheel
                          hook = backend.prepare_metadata_for_build_wheel
                      AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
                  
                      During handling of the above exception, another exception occurred:
                  
                      Traceback (most recent call last):
                        File "C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py", line 280, in <module>
                          main()
                        File "C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py", line 263, in main
                          json_out['return_val'] = hook(**hook_input['kwargs'])
                        File "C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py", line 130, in prepare_metadata_for_build_wheel
                          return _get_wheel_metadata_from_wheel(backend, metadata_directory,
                        File "C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py", line 159, in _get_wheel_metadata_from_wheel
                          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                        File "C:UsersmshalAppDataLocalTemppip-build-env-nnx_yu09overlayLibsite-packagessipbuildapi.py", line 51, in build_wheel
                          project = AbstractProject.bootstrap('pep517')
                        File "C:UsersmshalAppDataLocalTemppip-build-env-nnx_yu09overlayLibsite-packagessipbuildabstract_project.py", line 83, in bootstrap
                          project.setup(pyproject, tool, tool_description)
                        File "C:UsersmshalAppDataLocalTemppip-build-env-nnx_yu09overlayLibsite-packagessipbuildproject.py", line 479, in setup
                          self.apply_user_defaults(tool)
                        File "project.py", line 62, in apply_user_defaults
                          super().apply_user_defaults(tool)
                        File "C:UsersmshalAppDataLocalTemppip-build-env-nnx_yu09overlayLibsite-packagespyqtbuildproject.py", line 79, in apply_user_defaults
                          super().apply_user_defaults(tool)
                        File "C:UsersmshalAppDataLocalTemppip-build-env-nnx_yu09overlayLibsite-packagessipbuildproject.py", line 225, in apply_user_defaults
                          self.builder.apply_user_defaults(tool)
                        File "C:UsersmshalAppDataLocalTemppip-build-env-nnx_yu09overlayLibsite-packagespyqtbuilduilder.py", line 66, in apply_user_defaults
                          raise PyProjectOptionException('qmake',
                      sipbuild.pyproject.PyProjectOptionException
                      ----------------------------------------
                  ERROR: Command errored out with exit status 1: 'c:usersmshalappdatalocalprogramspythonpython39python.exe' 'C:UsersmshalAppDataRoamingPythonPython39site-packagespip\_vendorpep517\_in_process.py' prepare_metadata_for_build_wheel 'C:UsersmshalAppDataLocalTemp	mp41s11ev6' Check the logs for full command output.
                  

                  我使用的是最新版本的 pip.关于这个问题的根本原因的任何想法?

                  I am on the latest version of pip. Any ideas on the root cause of this issue?

                  推荐答案

                  帮助我将 pip 从 20.2.3 升级到最新版本(在我的例子中是 21.1.1)

                  What helped me is upgrading pip from 20.2.3 to the latest one (in my case 21.1.1)

                  这篇关于AttributeError:模块 'sipbuild.api' 没有 PyQt5 5.15.0 的属性 'prepare_metadata_for_build_wheel'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何从我的 Python 文件中更新 Qml 对象的属性? 下一篇:使用 PyQt5 运行命令并获取标准输出和标准错误

                  相关文章

                  最新文章

                1. <legend id='OKYhK'><style id='OKYhK'><dir id='OKYhK'><q id='OKYhK'></q></dir></style></legend>
                2. <i id='OKYhK'><tr id='OKYhK'><dt id='OKYhK'><q id='OKYhK'><span id='OKYhK'><b id='OKYhK'><form id='OKYhK'><ins id='OKYhK'></ins><ul id='OKYhK'></ul><sub id='OKYhK'></sub></form><legend id='OKYhK'></legend><bdo id='OKYhK'><pre id='OKYhK'><center id='OKYhK'></center></pre></bdo></b><th id='OKYhK'></th></span></q></dt></tr></i><div id='OKYhK'><tfoot id='OKYhK'></tfoot><dl id='OKYhK'><fieldset id='OKYhK'></fieldset></dl></div>

                    1. <small id='OKYhK'></small><noframes id='OKYhK'>

                        <bdo id='OKYhK'></bdo><ul id='OKYhK'></ul>
                      <tfoot id='OKYhK'></tfoot>