安装pyinstaller

#安装pyinstaller:

pip3 install pyinstaller -i http://mirrors.aliyun.com/pypi/simple  --trusted-host mirrors.aliyun.com

 

安装的时候会提示:UPX is not available

---------https://upx.github.io/

#打包成exe文件:

pyinstaller -F -w test_main.py -p get_file.py,calc_time.py,Analysis_data.py

-F表示程序主文件

-p表示依赖包

-w表示不打开黑色的命令窗口。

 

#在修改图标的同时修改文件名称再修改输出的文件路径

pyinstaller -i youxi.ico -F youxi.py -n name --distpath C:\Users\86177\Desktop

posted on 2021-12-29 20:58  R0mrnel  阅读(26)  评论(0)    收藏  举报