'pyuic5' 未被识别为内部或外部命令
- 作者: 爱的旋律88
- 来源: 51数据库
- 2022-12-19
问题描述
我正在尝试将 QTDesigner 创建的 ui 文件转换为 py 文件.但我得到了错误:pyuic5 未被识别为内部或外部命令.我使用 anaconda 3,并在这里尝试了所有建议:
I am trying to convert ui file created by QTDesigner to py file. but i get the error: pyuic5 is not recognized as an internal or external command. I use anaconda 3, and tried all suggestions here:
C:/Program 无法识别...与 pyuic5 相关.
我在这里看到过:
'Pyuic4' 未被识别为内部外部命令.
推荐答案
对于任何人有这个问题:关键是anaconda3中的pyuic5.bat在:
for any one has this problem: the key is that in anaconda3 pyuic5.bat is in:
Anaconda3Libraryin
Anaconda3Libraryin
设计师也在这里.
所以在 cmd 中你必须先 cd 到:
so in cmd you must first cd to:
AnacondaLibraryin
然后:
pyuic5.bat -x filename.ui -o filename.py
推荐阅读
热点文章
Discord.py(重写)on_member_update 无法正常工作
0
Discord.py 在 vc 中获取用户分钟数
0
discord.py 重写 |为我的命令出错
0
Discord.py rewrite 如何 DM 命令?
0
播放音频时,最后一部分被切断.如何解决这个问题?(discord.py)
0
在消息删除消息 Discord.py
0
如何使 discord.py 机器人私人/直接消息不是作者的人?
0
(Discord.py) 如何获取整个嵌入内容?
0
Discord bot 尽管获得了许可,但不能提及所有人
0
Discord.py discord.NotFound 异常
0
