1、安装pyside6
pip install pyside6 -i https://pypi.tuna.tsinghua.edu.cn/simple
2、配置idea
File - setting - Tools - External Tools - +(add)
(1)
Name: Pyside6-Designer (创建页面)
Program: \venv\Lib\site-packages\PySide6\designer.exe 以个人环境为准
Working directory: $FileDir$
(2)
Name: Pyside6-UIC (页面转为.py文件。注意会覆盖之前文件)
Program: \venv\Scripts\pyside6-uic.exe 以个人环境为准
Arguments: $FileName$ -o ui_$FileNameWithoutExtension$.py
Working directory: $FileDir$
3、安装打包环境
pip install pyinstaller -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install auto-py-to-exe -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
4、打包程序