一 :生成exe工具:
1: pyinstaller
pyinstaller 安装镜像源
使用镜像源安装不会卡顿;在pip 后面跟上:-i https://pypi.doubanio.com/simple/;入上面栗子
其他镜像源如下:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
豆瓣镜像源安装指令:
pip install -i https://pypi.doubanio.com/simple/ pyinstaller
2: Inno Setup Compiler
官网下载自行安装,免费软件.
官网: https://jrsoftware.org/isdl.php
二 :pyinstaller生成exe文件包:
pyinstaller main.py --noconsole --hidden-import PySide2.QtXml --icon="./imgs/quec.ico" --exclude-module _bootlocale
三 :Inno Setup Compiler 生成exe安装包:
提醒:
pyinstaller 生成的exe安装包需要你自己调试能不能运行,可以运行了在使用Inno Setup Compiler做成exe安装包.