Suppose, I want to create a .exe file and i want all my features which are depended on certain packages or modules like tensorflow etc.So,how can i do this.
Asked
Active
Viewed 935 times
-1
-
Trust me, you don't want to do this. Otherwise there are multiple ways like cx_freeze, py2exe or py2app. – Pete Ythong Apr 30 '20 at 12:15
-
https://www.activestate.com/blog/how-to-convert-py-to-exe/ You can try these. – Apr 30 '20 at 12:21
-
https://pyinstaller.readthedocs.io/en/stable/usage.html – Luke-zhang-04 Apr 30 '20 at 14:47
1 Answers
0
You can use something like pyinstaller, you can install it like this:
pip install pyinstaller
Once you install it, use this syntax to create to an exe:
pyinstaller yourprogram.py
This will create a .exe file from your program which will be in a dist
folder and will include all dependencies along with it.
Additional documentation is avaialable here on how to include an icon etc.