參考這個鏈接使用pyinstall的時候出錯https://zhuanlan.zhihu.com/p/87211459
錯誤1:Error running the exe file in Windows “Failed to execute script pyi_rth_pkgres”
解決方式: https://github.com/pyinstaller/pyinstaller/issues/2137
pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
錯誤2:OSError: [WinError 193] %1 不是有效的 Win32 應用程序。
解決方式:去掉-r選項