[Python] How to convert .py to .exe
2 min readJan 29, 2020
- This note is applied to convert .py to .exe by using pyinstaller. We use Hello.py as example.
2. Environment : Windows 10 (x64) and python 3
3. Steps:
a. pip install pyinstaller
b.Execute pyinstaller -F ./hello.py and make sure they are in same path.
4. You can find hello.exe in dist folder.
5. Execute result as below.
Reference: