0

I have 7 scripts that all call eachother at some point, so I want to compile them all and have it as a single .exe that I can run anywhere. Pyinstaller isn't working for me, it keeps coming up with errors such as WARNING: lib not found: api-ms-won-crt-time-l1-1-0.dll dependency of c:\python35\DLLs\_ssl.pyd

2 Answers2

2

Another way to compile your scripts to an .exe is cx_freeze. Or like creyD said Pyinstaller.

xFuture
  • 326
  • 1
  • 8
  • I'm using cx_Freeze right now! To compile multiple scripts can I just make `executables = [Executable("distme.py")]` in `setup` into `executables = [Executable("distme.py"), Executable("distme2.py")]` or `executables = [Executable("distme.py", "distme2.py")]`? – Taylor Hetherington Apr 20 '17 at 12:41
  • `executables = [Executable("")]` is correct I think. – xFuture Apr 20 '17 at 12:58
  • no, I mean, how could I make multiple python files in to one exe? – Taylor Hetherington Apr 20 '17 at 13:00
  • Ahh okay sry. So to do this you can easily use `Packages =` in your setup.py. So for example: Packages = ["example1", "example2", "example3"] – xFuture Apr 20 '17 at 13:07
  • Thanks, what about if I have an Assets file (since I'm using PyQt5), do I have to do anything special with that or can I just drop it in the folder when I've compiled it? – Taylor Hetherington Apr 20 '17 at 13:11
  • Hmm I have no experience with PyQt5. I guess the best way to see if this is working, is to test it out. :) – xFuture Apr 21 '17 at 06:17
0

Have you tried to use another program (like py2exe or similar)? If this doesn´t help and you can´t merge them into one larger script (what would be my prefered way) maybe you could should check on the dll Pyinstaller can´t find, cause it seems like one of your scripts would need it.

If you need to include the dll file into your exe maybe this Post will help you...

Community
  • 1
  • 1
creyD
  • 1,972
  • 3
  • 26
  • 55