Convert Python to exe

1

I have an app made in python that pulls several imports, and my client does not want to install Python in their environment (because it is an Oracle server), the output I found was to create an .exe, however when I I do not know how to do this, but I do not know how to do it.

  • Python 2.7
  • Python 3.5
  • Python 3.8
  • The following is what I import into the application

    import glob, os, time, datetime
    

    PS: When doing the test on windows I copy both the dist folder and the build.

    Can someone give me a light?

    @EDIT

    Following the hint, I did the same process (CMD> pyinstaller Arq.py), now windows comes to recognize it but when trying to run it presents the following error: When executing Python itself, it performs the script (this script connects to the database and takes some information).

        
    asked by anonymous 20.07.2018 / 21:40

    1 answer

    1

    The pyinstaller generates executables for windows, if run on windows. When running pyinstaller on linux, it will generate an executable for linux.

    One way around this is to use wine. Create a new prefix and install python, the libs you want and the pyinstaller, so you can generate executables on linux and use on windows.

    Remembering that what pyinstaller does is put python and all libs inside the exe, so if your client does not want to install python, it's worse for him since every .exe will have python inside.

    EDIT:

    It looks like you are now using Python 3.7 on windows - It looks like you have a pyinstaller bug in this version of python - try using Python 3.6;

        
    20.07.2018 / 22:34