# installer pip install PyInstaller -i https://mirrors.aliyun.com/pypi/simple/ # only windows without console python.exe -m PyInstaller --onefile --windowed --name exe_name .\source_mame.py # windows with console python.exe -m PyInstaller --onefile --console --name exe_name .\source_name.py # basic python.exe -m PyInstaller --onefile --name exe_name .\source_name.py