1. 打开 anaconda prompt
2.安装pyInstaller
pip install pyinstaller
3.将cmd的目录切换至需要打包的py文件目录下
4. pyinstaller -F -c test.py(主程序)
常用参数说明:
–icon=图标路径
-F 打包成一个exe文件
-w 使用窗口,无控制台
-c 使用控制台,无窗口
-D 创建一个目录,里面包含exe以及其他一些依赖性文件
pyinstaller -h 来查看参数
1. 打开 anaconda prompt
2.安装pyInstaller
pip install pyinstaller
3.将cmd的目录切换至需要打包的py文件目录下
4. pyinstaller -F -c test.py(主程序)
常用参数说明:
–icon=图标路径
-F 打包成一个exe文件
-w 使用窗口,无控制台
-c 使用控制台,无窗口
-D 创建一个目录,里面包含exe以及其他一些依赖性文件
pyinstaller -h 来查看参数
转载于:https://www.cnblogs.com/xuyuchen/p/8525954.html