how to run py scripts in windows without installing python interpreater in one file via pyinstaller

 After writing a Python script or program you can use PyInstaller

  1. pip install pyinstaller 

And then do the following to create an exe file that should run without the need of having Python installed on the target PC

  1. pyinstaller --onefile program.py 

the ‘—onefile’ parameter is used to put all the needed files and libraries into a single executable file. It is important that you look at creating a virtual environment to manage your project packages.

Post a Comment

0 Comments