Search code examples
pythonpython-3.xtkinterpyinstaller

Does executable file created using pyinstaller require Python and other modules installed on PC?


I created an executable file(.exe) using pyinstaller. If I have to share it, does the other computer require Python and other modules installed?


Solution

  • Pyinstaller just compress all the libraries and the code into one executable file, so no. But If you want other to run your Python file, they do need the libraries you used in your code. You can use some arguments with Pyinstaller to make it one executable file.

    pyinstaller -F <my_file> # -F == one file
    

    For More information about Pyinstaller and his features, you can read the manual here or just use the help argument with Pyinstaller

    pyinstaller -h