May-23-2020, 02:04 PM
.exe
shall be in dist
folder.Here i run,and i use cmder.
# File used,<more> in cmd C:\code λ cat hello.py # hello.py print('hello world') input('Press Enter to exit') # Make C:\code λ pyinstaller --onefile hello.py 140 INFO: PyInstaller: 3.4 140 INFO: Python: 3.7.3 141 INFO: Platform: Windows-10-10.0.18362-SP0 142 INFO: wrote C:\code\hello.spec 276 INFO: UPX is not available. 278 INFO: Extending PYTHONPATH with paths ['C:\\code', 'C:\\code'] 278 INFO: checking Analysis 345 INFO: checking PYZ 386 INFO: checking PKG 397 INFO: Bootloader c:\python37\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe 397 INFO: checking EXE # cd to dist C:\code λ cd dist # List files,<dir> i cmd C:\code\dist λ ls hello.exe* # Run .exe C:\code\dist λ hello hello world Press Enter to exit C:\code\dist