Reputation: 101
I have a question I make an application using python. now I'm trying to make it executable. and I did it with the help of this . Now I'm facing a problem the python file size is in KB about 2kb and when i make exe of it the size 5MB
Upvotes: 1
Views: 2862
Reputation: 1
You can also use UPX
for those purposes.
UPX Download - https://github.com/upx/upx/releases/tag/v3.96
Use UPX with the module 'PyInstaller' for better results(somewhat).
PyInstaller Download - https://pypi.org/project/pyinstaller/ PyInstaller Documentation - https://pyinstaller.readthedocs.io/en/stable/
PyInstaller with UPX - https://pyinstaller.readthedocs.io/en/stable/usage.html?#using-upx
Upvotes: 0
Reputation: 11
Using 'Cython' to compile the C/C++ file generated using any compiler requires the 'Include' folder in the python 'installation' folder to be added to the 'PATH' variable (on windows).
Upvotes: 1