How to compile multiple python files into one using Pyinstaller?

Asked

Viewed 379 times

0

I am making a calculation program that is divided into 3 files py:

  • graphical interface file (cerberus.py)
  • file making the calculations(calc.py)
  • file responsible for data plotting(plot.py)

I tried to compile with the command:

pyinstaller --onefile --windowed cerberus.py

But when opening the resulting file, it no longer carried out the calculations or plots on the canvas, it was "inerte". How do I fix it?

1 answer

-1

To "pull" other modules to your executable file try using the following code, remembering that the other files must be in the same folder as your main file, at the same level :

pyinstaller --additional-hooks-dir=. --onefile --windowed cerberus.py

Browser other questions tagged

You are not signed in. Login or sign up in order to post.