cf. exe로 컴파일
Copyright (C) Microsoft Corporation. All rights reserved.
새로운 크로스 플랫폼 PowerShell 사용 https://aka.ms/pscore6
PS C:\Users\kiost> pip install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-4.9-py3-none-win_amd64.whl (2.0 MB)
|████████████████████████████████| 2.0 MB 6.4 MB/s
Collecting pywin32-ctypes>=0.2.0
Downloading pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting altgraph
Downloading altgraph-0.17.2-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in c:\users\kiost\appdata\local\programs\python\python310\lib\site-packages (from pyinstaller) (58.1.0)
Collecting pyinstaller-hooks-contrib>=2020.6
Downloading pyinstaller_hooks_contrib-2022.2-py2.py3-none-any.whl (223 kB)
|████████████████████████████████| 223 kB 6.4 MB/s
Collecting pefile>=2017.8.1
Downloading pefile-2021.9.3.tar.gz (72 kB)
|████████████████████████████████| 72 kB 5.5 MB/s
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 6.8 MB/s
Using legacy 'setup.py install' for pefile, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Installing collected packages: future, pywin32-ctypes, pyinstaller-hooks-contrib, pefile, altgraph, pyinstaller
Running setup.py install for future ... done
Running setup.py install for pefile ... done
Successfully installed altgraph-0.17.2 future-0.18.2 pefile-2021.9.3 pyinstaller-4.9 pyinstaller-hooks-contrib-2022.2 pywin32-ctypes-0.2.0
WARNING: You are using pip version 21.2.4; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Users\kiost\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
PS C:\Users\kiost\PycharmProjects\pythonProject\Days23_turtle_crossing> pyinstaller --onefile filename.py
dist (distribute) 디렉토리에 exe 생성됨