PyInstaller not working on simple HelloWorld Program

后端 未结 2 529
暗喜
暗喜 2020-12-13 04:45

So I am running on 64-bit Windows 7, and I set up Pyinstaller with Pip and PyWin32. I have python 2.7.

I made a simple hello world Program with this code

<         


        
2条回答
  •  离开以前
    2020-12-13 05:09

    Run with the -F flag to produce the standalone exe:

    pyinstaller -F helloworld.py
    

    It will output to dist/helloworld.exe

    NOTE this is a different location to when -F is not used, be sure to run the right exe afterwards.

提交回复
热议问题