how to change a python file to exe code example
Example 1: how to make a python exe
pip install pyinstaller
cd YourFilePath
pyinstaller --onefile YourFileName
Example 2: python to exe
pip install pyinstaller
cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
Example 3: can you release a python program to an exe file
python -m pip install pyinstaller
pyinstaller yourprogram.py
Example 4: how to convert python file to exe
open command prompt
type "pip install pyinstaller"
after it is installed
locate to the file in cmd(command prompt) using cd
for example : cd /folder/location
after you are in that folder type:
pyinstaller file_name.py --onefile -w
now pyinstaller will give you different type of files
to locate the .exe file you want go into the folder,
then go into dist folder and you will find it.
now you are done! BOYAAH !!
@important note -> if this gives you an error then you need to use py2exe module
Example 5: python to exe
Install pip using
pip install pyinstaller
in the directory of the source code file run
pyinstaller <file_name>.py