step1 下載pyinstaller 鏈接地址http://www.pyinstaller.org/downloads.html
打開地址結果如上圖,step2進行安裝;
step2:安裝pyinstaller
解壓文件,復制pyinstaller文件夾中setup.py所在的路徑
打開win命令行cmd窗口 進入到剛才復制的地址路徑
執行命令 python setup.py install
靜靜的抽根煙,直到看到finished processing dependencies for ...
step3:使用
cmd進入到需要打包成exe程序的py腳本目錄下
執行命令pyinstaller -F hello.py
最后會在hello.py的同級目錄下生成一個dist文件夾
打開會看到
我興奮的打開了hello.exe 窗口一閃而過,並不是我想要的!