How to Create exe File in Python
In this article, we will see how to create an exe file in python.
In the Windows Command Prompt, type the following command to install the pyinstaller
package :
pip install pyinstaller
Create a new python file. Then go to command prompt, and type
cd followed by the location where your Python script is stored.
Now you are currently in the directory where your python file is. The following command will help to create an exe file from your .py file. Replace pythonScriptName with the name of your python file name.
pyinstaller --onefile pythonScriptName.py
Your executable should now get created at the location that you specified.
Subscribe
Login
Please login to comment
0 Discussion