2019年6月27日星期四

python 工程发布 (转化成一个exe文件)

同题 (For Windows)

用 pyinstaller

参考命令

pyinstaller """".py --onefile --noconsole


For Linux:

 

Install:

sudo pip3 install Pyinstaller

 

USE:

pyinstaller --onefile sample.py