User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:python:package_exe

python程序打包成exe

1. Install module pyinstaller

# Install package
pip install pyinstaller

# Check the package
pyinstaller -v

2. Generate exe

pyinstall -F test.py
# or, -w, no terminal
pyinstaller -F music.py -w
library/python/package_exe.txt · Last modified: 2022/05/02 00:32 (external edit)