Answers for "how to run a .exe with a python file"

11

how to run a .exe through python

import os
os.startfile("C:\Documents and Settings\flow_model\flow.exe")
Posted by: Guest on February-25-2020
1

Python how to compile to exe file

# Открыть командную строку windows 
# Установить pyinstaller 

pip install pyinstaller 

# Затем перейти в папку с Вашим файлом .py в командной строке (при помощи команды cd) 
# Запустить команду pyinstaller не забудьте указать имя вашего скрипта 

pyinstaller --onefile <your_script_name>.py 

# Всё - у вас в папке появится папка src и там будет .exe файл.
Posted by: Guest on April-27-2021

Code answers related to "how to run a .exe with a python file"

Python Answers by Framework

Browse Popular Code Answers by Language