[Python] How to convert .py to .exe

Fatboy Slim
2 min readJan 29, 2020

--

  1. 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:

1. https://medium.com/pyladies-taiwan/python-%E5%B0%87python%E6%89%93%E5%8C%85%E6%88%90exe%E6%AA%94-32a4bacbe351

--

--

Fatboy Slim
Fatboy Slim

Written by Fatboy Slim

Interesting in any computer science.

Responses (1)