首页 > Python > pycharm中配置pyqt5

pycharm中配置pyqt5

Python 2023-04-05

1.安装PyQt5


pip install PyQt5 -i https://pypi.douban.com/simple

2.安装PyQt5-tools


pip install PyQt5-tools -i https://pypi.douban.com/simple


 

老的版本在这个路径:


 

新版安装之后 Qt designer.exe这个路径下面:


 

3、配置QTdesigner和pyuic

1.进入pycharm,点击file>>Setting>>External tools

2.点击添加按钮,先添加qtdesigner
Qtdesigner设置:

name:可以自己命名。
program:D:\Python Install\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
working directory:$ProjectFileDir$


添加pyuic代码转换工具 pyuic参数设置:

name:可以自己命名。
program:D:\Python Install\Scripts\pyuic5.exe
arguments:$FileName$ -o $FileNameWithoutExtension$.py
working directory:$ProjectFileDir$



热门标签: excel   fastreport   JSON   Matplotlib   Dockerfile   字幕   闪退   文字转语音