[Record] 配置PyQt5 (Linux系统)
[Record]配置PyQt5 (Linux 系统)
在Windows环境忙活了一下午都找不到东西,于是尝试使用Linux,果然方便快捷
系统:Ubuntu22.04
First, create a new environment in anaconda
1 |
|
- Go into the environment
1 |
|
- get pyqt5
1 |
|
- Install Qt Designer
1 |
|
- Open the Qt Designer
1 |
|
- Edit the file and save it
- Transform the ui into python
1 |
|
上面的命令生成的代码只是一些定义的函数,并没有调用,执行之后并不会有任何界面显示,需要在另外的python文件中进行import之后调用; 如果想要在单独一个文件中执行并显示图形结果,可以使用
1 |
|
感谢来自csdn的文章链接
[Record] 配置PyQt5 (Linux系统)
http://jamil-yu.github.io/2023/04/16/[Record]配置PyQt5 (Linux 系统)/