导入QtCore时DLL加载失败

2024-05-13 20:39:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用pyuic5。但我得到了以下错误:

C:\User\Zeroday>pyuic5
Traceback (most recent call last):
  File "C:\User\Zeroday\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\User\Zeroday\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\User\Zeroday\AppData\Local\Programs\Python\Python39\lib\site-packages\PyQt5\uic\pyuic.py", line 26, in <module>
    from PyQt5 import QtCore
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.

但当我在水蟒身上这么做的时候,我没有问题。但我希望能在每个人身上使用它


Tags: runinpyliblocallinecodeappdata