microproduct/soilMoisture_c_sar/打包步骤.txt

11 lines
497 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

该文件记录程序打包为exe的流程
第一步打开anaconda 的土壤水分运行环境或者pycahrm终端
第二步cd到“soilMoisture_c_sar”文件夹
命令cd .\soilMoisture_c_sar
第三步:运行打包命令
命令pyinstaller -D pyinstaller.spec
第四步复制config.ini,model_meta.xml,proj.db到 dist文件夹删除build临时文件夹。
第五步生成的soilMoisture_c_sar.exe在dist文件夹,运行exe测试程序是否正常运行
第六步复制dist文件夹到所需目录将dist文件夹改为运行程序的名称。
参考链接https://www.jb51.net/article/187806.htm