-1

I have a big python program which contains a lot of python files, images, etc.

I tried to create an executable file of all the program, but it does not success.

I am using PyQt5, Tesorflow and many other classes.

I hope anyone can help to create an exe for my final univesity project.

Thank You a lot.

1 Answers1

0

Here is a link with a sample. and here a nice article.

basically, you get a tool like pyinstaller:

pyinstaller --onefile <your_script_name>.py

If you have more than 1 file, as you say in your answer then you can use compile all:

compileall.compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None, quiet=0, legacy=False, optimize=-1, workers=1)

as shown here

Have a look at this Git project that uses IronPython and this web page that has a step by step for IronPython

Good luck

Walter Verhoeven
  • 3,867
  • 27
  • 36
  • I tried this, but because I have a big project with a lot of py files and anothers file, it doesn't work. I need somehow to add all my files to the executable file. – Yarden Page Jun 15 '18 at 18:16
  • I am just not sure how to define the main execute py file in this way. The dir includes all the files, how can I determine which one is the one to run? Thanks. – Yarden Page Jun 17 '18 at 16:12
  • make a .py file that would work as "main" and specify that #Build EXE #gb=["/main:FredMain.py","FredSOAP.py","/target:exe","/out:Fred_Download_Tool"] #pyc.Main(gb). have a look at the step by step – Walter Verhoeven Jun 18 '18 at 06:49