xxxxxxxxxx
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)
xxxxxxxxxx
pip install pyinstaller
cd YourFilePath
pyinstaller --onefile YourFileName
xxxxxxxxxx
# Открыть командную строку windows
# Установить pyinstaller
pip install pyinstaller
# Затем перейти в папку с Вашим файлом .py в командной строке (при помощи команды cd)
# Запустить команду pyinstaller не забудьте указать имя вашего скрипта
pyinstaller --onefile <your_script_name>.py
# Всё - у вас в папке появится папка src и там будет .exe файл.
xxxxxxxxxx
import sys, string, os, arcgisscripting
os.system("C:/Documents and Settings/flow_model/flow.exe")
xxxxxxxxxx
Open your command prompt
pip install pyinstaller
cd YourFilePath
pyinstaller --onefile YourFileName
xxxxxxxxxx
pyinstaller --onefile yourprogram.py
or
pyinstaller --noconsole --onefile yourprogram.py