Pyinstaller

别再问我怎么Python打包成exe了! (zhihu.com)

切换到所在的文件夹下cmd

Pyinstaller -F -w -i chengzi.ico py_word.py

F/TYOPORA_Note/Computer/python/relative/image-20230426205634455.png

执行 pyinstaller -F -w setup.py 多加-w以后,就不会显示黑洞洞的控制台

F/TYOPORA_Note/Computer/python/relative/image-20230426205839840.png