How can I convert a .py to .exe for Python?

前端 未结 6 1073
清酒与你
清酒与你 2020-11-22 00:55

I\'m trying to convert a fairly simple Python program to an executable and couldn\'t find what I was looking for, so I have a few questions (I\'m running Python 3.6):

6条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 01:21

    Now you can convert it by using PyInstaller. It works with even Python 3.

    Steps:

    1. Fire up your PC
    2. Open command prompt
    3. Enter command pip install pyinstaller
    4. When it is installed, use the command 'cd' to go to the working directory.
    5. Run command pyinstaller

提交回复
热议问题