How to change python version for use with pyinstaller

后端 未结 5 1007
遥遥无期
遥遥无期 2021-02-06 00:25

I am trying to convert a .py file to an exe. My file, hello.py, reads:

print \"Hello, World!\"

I am currently trying to use pyinstaller. Howeve

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 01:18

    Using Python3:

    Make sure PyInstaller is installed in Python 3.x: pip3 freeze

    PyInstaller==3.3.1

    Then running the command:

    /path/to/python3 -m PyInstaller your_script.py
    

提交回复
热议问题