python打包代码为exe
1.先安装pyinstaller,直接pip install pyinstaller就好了
2.cd到py文件位置,输入以下命令:
-C:\Users\lenovo\PycharmProjects\pythonProject12>pyinstaller -F --hidden-import easygui -i C:\Users\lenovo\PycharmProjects\pythonProject12\yang_2.ico C:\Users\lenovo\PycharmProjects\pythonProject12\auto_water2.py