“Cómo hacer que el archivo de Python sea ejecutable” Código de respuesta

Cómo hacer una pitón exe

pip install pyinstaller

cd YourFilePath

pyinstaller --onefile YourFileName
Condemned Cowfish

Cómo ejecutar un .exe a través de Python

import os
os.startfile("C:\Documents and Settings\flow_model\flow.exe")
Daneel Brookes

Python a Exe

pip install pyinstaller

cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
# a .exe file is created in the FullPathOfFile\dist
Breakable Butterfly

código para hacer un archivo exe para python

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)
Condemned Cowfish

Crear EXE del script de Python

pyinstaller --onefile pythonScriptName.py
Relieved Reindeer

Cómo hacer que el archivo de Python sea ejecutable

pyinstaller --onefile pythonScriptName.py
Concerned Cow

Respuestas similares a “Cómo hacer que el archivo de Python sea ejecutable”

Preguntas similares a “Cómo hacer que el archivo de Python sea ejecutable”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código