Answer the question
In order to leave comments, you need to log in
Python script converted to exe not working?
Python program converted to exe does not work.
A little about the script itself. I'm writing a keylogger (EXCLUSIVELY for educational purposes). I am writing its simplest version, only two libraries. Pynput and SMTPlib (for sending to mail).
If you just run the main.py file (there is all the logger code) through the terminal, then everything works. But when I compile the main.py file into an exe using pyinstaller, when I open it, the terminal appears for a moment and that's it. The program just doesn't work. No mistakes. The main.py file itself works, but if compiled into an exe, it doesn't. I don't know what to do with it.
Answer the question
In order to leave comments, you need to log in
Crookedly gathered in a heap - problems with dependencies that pyinstaller sticks. Try to go through the console to the desired directory and run the exe file from the console there, where the output will go, which will be analyzed. Or redirect the output to txt. You can also do this with a bat file.
In general - it's better not to engage in nonsense and interpreted languages - run with an interpreter. I also tinkered with this pyinstaller, they could not collect anything more or less complicated.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question