1. 下载安装py2app
pip3 install py2app
2. 创建setup.py文件
py2applet --make-setup XXX.py
创建成功后显示:Wrote setup.py
3. 发布应用
rm -rf build dist
python3 setup.py py2app
打包开发模式需要给后面加-A,如:
python setup.py py2app -A
pip3 install py2app
py2applet --make-setup XXX.py
创建成功后显示:Wrote setup.py
rm -rf build dist
python3 setup.py py2app
打包开发模式需要给后面加-A,如:
python setup.py py2app -A
本文标题:Mac OS打包python3程序
本文链接:https://www.haomeiwen.com/subject/ibhhgctx.html
网友评论