How to change python version for use with pyinstaller

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

    Supposing you have python 2.x on the path under python2 you can do

        python2 -m pyinstaller hello.py
    

提交回复
热议问题