Will a python file run on a random user's computer just fine, or do I need to convert it into an .exe first and then send the .exe file to the user?
Thank you.
CodePudding user response:
If the random user has python installed on their computer then the file will run fine. If they don't have it installed, then you will need to convert it into an executable.
CodePudding user response:
For running the .py
python script files, you would need python runtime installed on the end-user's machines. If you want to be able to package and send the python program as a self-contained binary (exe file), you can use something like https://pyinstaller.readthedocs.io/en/stable/ to build the exe. This exe would package all your script files, their dependencies & the python runtime itself and can be run directly on the end-user's computers without installing anything extra.