一个欲儿的博客

一个欲儿的博客

Python写的程序转exe
2024-10-15

打开cmd

安装py转exe

pip install pyinstaller

自己cd到文件存在的目录

pyinstaller -F -i 图标.ico 源码.py

image.png

命令完成以后,会生成两个文件夹和一个spec文件,exe文件在dist文件夹里面,exe拿走以后,其他的文件都可以删除

image.png


发表评论: