在Windows平台上的python 3中从.ui到.py的转换

时间:2018-07-06 04:32:34

标签: python qt pyqt python-3.6 pyuic

我正在尝试使用PyQt5(pyuic5.bat)将Qt设计器生成的.ui文件转换为.py文件

它抛出DLL丢失错误

from PyQt5 import QtCore

Traceback (most recent call last):
  File "C:\Python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python36\lib\site-packages\PyQt5\uic\pyuic.py", line 26, in <module>
    from PyQt5 import QtCore
ImportError: DLL load failed: The specified procedure could not be found.

尝试将python3.dll,python36.dll,msvcp110.dll,msvcr110.dll从python36文件夹粘贴到System32和SysWOW64。但是问题仍然存在...

0 个答案:

没有答案