利用pip安装python的工具库pyinstaller
pip install pyinstaller
安装成功后
在cmd命令窗口输入:
pyinstaller -F C:\Users\ly\hello.py // hello.py打包成exe
注意 F 一定要大写
然后就会在这个路径下的dist文件夹下找到这和同名的hello.exe文件
将python的.py文件打包成可执行的.exe电脑文件
最新推荐文章于 2024-07-09 23:56:48 发布