1. 當程序中沒有調用matplotlib模塊orm
① pip intall pyinstallerip
② 在cmd環境下,pyinstaller -F xxx.pyutf-8
2.當程序中調用matplotlib模塊cmd
①pip install pyinstallerpip
②在cmd環境下,chcp 65001 切換utf-8form
③將D:\Anaconda2\Library\plugins\platforms文件夾拷貝放到和.exe同一路徑下plugin