【Python】编译打包神器 Nuitka

Backto Python Index

Nuitka: 一步到位,解决 Python软件的运行速度慢和源代码反编译不安全两大难题

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 & later.
You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
Free license (Apache).

安装

环境要求

  1. Python >= 2.7
  2. C compiler
C Compiler: You need a compiler with support for C11 or alternatively for C++03 1

Currently this means, you need to use one of these compilers:

The gcc compiler of at least version 5.1, or the g++ compiler of at least version 4.4 as an alternative.

The clang compiler on macOS X or FreeBSD.

The MinGW64 2 C11 compiler on Windows, ideally the one based on gcc 6 or higher. The Anaconda compilers 3 are suitable too, even if you use CPython, they are the easiest installation method.

Visual Studio 2017 or higher on Windows 4, older versions may work but are not officially supported. Configure to use the English language pack for best results (Nuitka filters away garbage outputs, but only for that language).

On Windows the clang-cl compiler on Windows can be used if provided if you use the CC environment variable to point to it, and you also have MSVC installed.

场景1: Windows 脚本小工具 exe

用 PyQt 画界面,Python 写逻辑,Nuitka 打包,so easy!参考:https://zhuanlan.zhihu.com/p/133303836
【Python】编译打包神器 Nuitka_第1张图片

你可能感兴趣的:(python,anaconda,Nuitka,编译,打包)