下载库
- 设置下载镜像源(清华)
pip config set global.index-url pypi.tuna.tsinghua.edu.cn/simple
- 库 pip install pyinstaller
windows平台运行
- 生成可执行文件
pyinstaller -F star.py 生成dist文件,把生成的文件放在一起,点击.exe 文件(在dist文件夹内)即可
可使用 -D 的方式运行
手机平台运行
pyinstaller --onefile star.py
生成单个exe 文件(在dist文件夹内)