问题遇到的现象和发生背景
用pyuic5把ui转为py一直出错
问题相关代码,请勿粘贴截图
(base) C:\Users\86177\Desktop>pyuic5 -o test.py untitled.ui
运行结果及报错内容
(base) C:\Users\86177\Desktop>pyuic5 -o test.py untitled.ui
Traceback (most recent call last):
File "D:\anaconda\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\anaconda\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\86177\AppData\Roaming\Python\Python39\site-packages\PyQt5\uic\pyuic.py", line 26, in <module>
from PyQt5 import QtCore
ImportError: DLL load failed while importing QtCore: 找不到指定的程序。