1. <legend id='4buHf'><style id='4buHf'><dir id='4buHf'><q id='4buHf'></q></dir></style></legend>

  2. <small id='4buHf'></small><noframes id='4buHf'>

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

    1. pyuic5 - ModuleNotFoundError:没有名为 PyQt5.sip 的模块

      时间:2023-08-04
      • <bdo id='1uGmn'></bdo><ul id='1uGmn'></ul>

        <small id='1uGmn'></small><noframes id='1uGmn'>

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

            <tfoot id='1uGmn'></tfoot>
                本文介绍了pyuic5 - ModuleNotFoundError:没有名为 PyQt5.sip 的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我刚刚在我的 Windows 系统上安装了带有 Python 3.6 的 Anaconda 5.2.还通过具有管理员权限的 pip 安装了 pyqt5 和 pyqt5-tools.现在,当我运行 pyuic5.exe 来转换 ui 文件时,它显示以下错误:

                I have just installed Anaconda 5.2 with Python 3.6 on my windows system. Also installed pyqt5 and pyqt5-tools via pip with administrator privilege. Now when I run pyuic5.exe for converting ui files it shows following error:

                Traceback (most recent call last):
                  File "C:UsersAshfaqurRahmanAnaconda3lib
                unpy.py", line 193, in _run_module_as_main
                "__main__", mod_spec)
                  File "C:UsersAshfaqurRahmanAnaconda3lib
                unpy.py", line 85, in _run_code
                exec(code, run_globals)
                  File "C:UsersAshfaqurRahmanAppDataRoamingPythonPython36site-packagesPyQt5uicpyuic.py", line 26, in <module>
                from PyQt5 import QtCore
                ModuleNotFoundError: No module named 'PyQt5.sip'
                

                我尝试使用 pip 安装 PyQt5-sip 包.但是它已经安装在我的系统中了.

                I have tried installing PyQt5-sip package using pip. Buts its already installed in my system.

                为什么会出现这个问题?我该如何解决这个问题?

                Why this problem is occurring? How can I solve this problem?

                推荐答案

                根据Agile_Eagle的建议来自我刚刚卸载了 pyqt5pyqt5-tools 软件包并重新安装了它们的评论.问题解决了!

                According to Agile_Eagle's suggestion from the comments I just uninstalled pyqt5 and pyqt5-tools packages and the reinstalled them. Problem solved!

                PS.:如果您仍然遇到 PyQt 问题,请尝试卸载所有 PyQt 相关库:

                PS.: If you still got problems with PyQt, try uninstalling all of the PyQt related libraries:

                pip uninstall PyQt5
                pip uninstall PyQt5-sip
                pip uninstall PyQtWebEngine
                

                然后重新安装它们,这将修复:

                Then install them again, this will fix:

                ModuleNotFoundError: No module named 'PyQt5.sip'
                ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'
                

                PPS.:如果您在卸载库时遇到问题,请转到您的 Python 文件夹,例如 C:Users<USERNAME>AppDataLocalProgramsPythonPython<PYTHON-VERSION>Libsite-packages 并手动删除 PyQt 文件夹,然后卸载所有内容并重新安装(确保您拥有最新的 Python 版本并升级您的 pip)

                PPS.:If you got problems uninstalling the libraries, go to your Python folder, like C:Users<USERNAME>AppDataLocalProgramsPythonPython<PYTHON-VERSION>Libsite-packages and manually delete the PyQt folders, then uninstall everything and install again (Make sure you have the latest Python version and upgraded your pip too)

                这篇关于pyuic5 - ModuleNotFoundError:没有名为 PyQt5.sip 的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:PyQt5 和 asyncio:从永不完成的收益 下一篇:如何在 PyQt5 GUI 中制作快速 matplotlib 实时绘图

                相关文章

                最新文章

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

                    <small id='9QVUQ'></small><noframes id='9QVUQ'>