Skip to content

Nuitka 初探

基础信息

  • 简介:Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, and 3.9. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module
  • 文档:nuitka.net
  • 版本:v0.6.17.5

简单案例

曾经在 Windows 系统下使用 Nuitka 编译网页服务的一个项目,编译命令如下:

1
2
3
4
nuitka.bat \
    --standalone --recurse-all --show-progress --show-memory --plugin-enable=pylint-warnings \
    --windows-icon-from-ico="static\favicon.ico" \
    main.py