将py文件转为exe文件

1.进入cmd指令

pip install pyinstaller

2.添加图标地址及py文件地址

补充制作icon的网站链接:制作ico图标 | 在线ico图标转换工具 方便制作favicon.ico - 比特虫 - Bitbug.net

pyinstaller -F -w -i C:\Users\Desktop\interest\images\look.png C:\Users\Desktop\interest\xx.py

3.在dist文件夹里,就有了exe文件啦

猜你喜欢

转载自blog.csdn.net/weixin_49828565/article/details/126154824
今日推荐