不知道为什么,我的python文件夹中的pyuic不但在实体机上用不了,U盘上也是,报错还不一样。错误文字:
Microsoft Windows [版本 10.0.19044.3086]
(c) Microsoft Corporation。保留所有权利。
C:\Users\zzh>E:\新建文件夹\Python38\Scripts\pyuic5.exe
Traceback (most recent call last):
File "E:\新建文件夹\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "E:\新建文件夹\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "E:\新建文件夹\Python38\Scripts\pyuic5.exe\__main__.py", line 4, in <module>
File "C:\Users\zzh\AppData\Roaming\Python\Python38\site-packages\PyQt5\uic\pyuic.py", line 26, in <module>
from PyQt5 import QtCore
ImportError: DLL load failed while importing QtCore: %1 不是有效的 Win32 应用程序。
C:\Users\zzh>C:\Users\zzh\AppData\Local\Programs\Python\Python38\Scripts\pyuic6.exe
usage: pyuic6 [-h] [-V] [-p] [-o FILE] [-x] [-d] [-i N] [-w N] ui
pyuic6: error: the following arguments are required: ui
C:\Users\zzh>C:\Users\zzh\AppData\Local\Programs\Python\Python38\Scripts\pyuic6.exe
usage: pyuic6 [-h] [-V] [-p] [-o FILE] [-x] [-d] [-i N] [-w N] ui
pyuic6: error: the following arguments are required: ui
C:\Users\zzh>
"
其中C盘是实体机,E是U盘
(pyuic和pyuic tool安装好了)
如果大家有解决办法或者最好是直接发给我能用的文件,可以发在评论下,谢谢