DEV Community


Discussion on: How to convert .py to .exe? Step by step guide.

headdawn profile image
Sertan ÖZCAN


ModuleNotFoundError: No module named ''
[14920] Failed to execute script algotrade

how can i solve this problem?


arthur10vieira profile image

Hello Sertan, all right?

I managed to solve this problem through a spec file that is in the directory as shown in the images shown

Open the notepad ++ editor to edit the specifications file as shown in the image below

Put the '' module on hiddenimports and save file spec

Execute instruction with pyinstaller as an example below

pyinstaller yournamefile.spec

After your executable file has been generated, run it and confirm that it worked for you

I hope to help you, I found out by researching the missing module and managed to overcome it

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app