How to change python version for use with pyinstaller

后端 未结 5 956
遥遥无期
遥遥无期 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:29

    First install Pyinstaller in your python2.7 version if not installed previously py -2 -m pip install pyinstaller

    and then go to your folder and

    py -2 -m pyinstaller -F filename.py
    

提交回复
热议问题