Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

How can I compile my whole python script into 1 EXE

The thing is, it uses multiple python scripts in one, so it has some dependencies.

If anyone can help me out with this, it would be awesome.

Also looking to pay ~$10 if someone can get it done for me.

EDIT: I've tried cx_freeze, pyinstaller and py2exe, but couldn't get any of them to work for some reason.
[Image: UHBI4lZ.gif]
Ever tried to compile it to .pyc ?
(Sep 7, 2018 05:35 AM)Dr. Lecter Wrote:  Ever tried to compile it to .pyc ?

I did, but I want a normal EXE
[Image: UHBI4lZ.gif]
I have this same problem all the time. I am still looking into other ways. If you are worried about people seeing your src code, instead of making a .exe, you can make it a .pyc and then change the end from .pyc to .py and the code is changed. Of course it is easy to change it back and see the code.
you can take help from linksys customer service
Either py2exe or pyinstaller. I have personal experience with py2exe, main drawback is that the build size is like 5mb (at least on windows)
(Sep 7, 2018 04:29 PM)pedro6 Wrote:  you can take help from linksys customer service

What has that got to do with anything?
[Image: UHBI4lZ.gif]
You can merge all of the dependencies into a single .exe using the --onefile parameter with py2installer. PM me your Discord if you still need help.
pyinstaller -F -w Your_python_file.py


the -w parameter is used to hide the console and the -F paramter to compile it to one file


PyInstaller Docs (to see all the options):
https :// pyinstaller .readthedocs .io/ en/st able /usage .html #options


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Assembly] by HackersJun 16, 2024 06:08 PM 9 415 Jun 16, 2024 06:08 PM
Last Post: Hackers
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[.NET] by hestemand123Feb 9, 2019 10:03 PM 1 193 Feb 9, 2019 10:03 PM
Last Post: StarZ