Getting rid of console output when freezing Python programs using Pyinstaller

前端 未结 4 796
天命终不由人
天命终不由人 2020-11-27 14:03

I have recently written a fairly simple program for my grandfather using Python with GUI from Tkinter, and it works beautifully for what he will be using it for. However, th

4条回答
  •  佛祖请我去吃肉
    2020-11-27 14:22

    Pyinstaller -F --noconsole yourfilename.pyw
    

    This will create a single .exe file

    Pyinstaller --noconsole yourfilename.pyw
    

    Using this you will get the .exe file along with all .dll and other necessary files in a folder.

提交回复
热议问题