简体   繁体   中英

Python standalone executable

I want to be able to create a Python standalone executable without any dependencies. Basically, an executable that is closed-source so that anyone end-user/client can use my application. I am aware of the module py2exe; however, it appears that you need some of the .pyc files with it to actually run the .exe file. I am using Python 2.7.x

Any help would be greatly appreciated.

Check PyInstaller. This is an alternative to py2exe

http://www.pyinstaller.org/

pip install pyinstaller

pyinstaller yourprogram.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM