comment faire un exe python
pip install pyinstaller
cd YourFilePath
pyinstaller --onefile YourFileName
Condemned Cowfish
pip install pyinstaller
cd YourFilePath
pyinstaller --onefile YourFileName
#Convert .py to .exe don't use python ver 3.9 will not work recomment 3.8:
pip install pyinstaller
#to convert to a simple exe file the exe file will be in your dist folder
pyinstaller 'fileName.py'
#to convert to a onefile exe file the exe file will be in your dist folder
pyinstaller --onefile 'fileName.py'
to convert to a onefile exe file and the python window will not appear
pyinstaller -w --onefile 'fileName.py'
pip install pyinstaller
cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
# a .exe file is created in the FullPathOfFile\dist
pip install pyinstaller
cd PathOfFile
pyinstaller --onefile -w ScriptName.py
(note that if you are using -w then your python file has to be an application and the file will be inside the "dist" folder)
Install pip using
pip install pyinstaller
in the directory of the source code file run
pyinstaller <file_name>.py
$ pip install auto-py-to-exe