2018年12月1日 星期六

[python] How to make a standalone exe file from a python(.py) file

1. install the anaconda.

2. install and upgrade
conda install -c conda-forge pyinstaller
conda install -c anaconda pywin32

3. pyinstaller --onefile <your_script_name>.py

4. Find the exefile in the Dist directory.

packages as follows:

Py2exe

PyInstaller

cx_Freeze

bbfreeze

py2app

ref:
http://www.freehackers.org/Packaging_a_python_program

沒有留言:

熱門文章