赞
踩
感觉和 pyinstaller 差不多。 目前还没感受到什么差别。
但是有很多人都推荐这个。
当前只是初步尝试,记录一下大体过程。后面有时间了,再找几个例子看看。
比如找点复杂的项目, 或是游戏项目,然后打包一下看看效果。
python -m pip install -U nuitka
最简单的使用方式:
python -m nuitka hello.py
python -m nuitka random_colors.py
–standalone 跨机器,会产生很多文件以及文件夹。
python -m nuitka --standalone hello.py
–onefile 单文件,但是文件估计会很大!
python -m nuitka --onefile hello.py
多个 py 文件 打包为一个
python -m nuitka --follow-imports hello.py
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。