python打包工具都有哪些?主要有:py2exe、pyinstaller、cx_Freeze、nuitka等
工具名称
windows
linux
是否支持单文件模式
bbfreeze
yes
yes
no
py2exe
yes
no
yes
pyinstaller
yes
yes
yes
cx_Freeze
yes
yes
no
py2app
no
no
yes
nuitka
yes
yes
yes
(上表来源于网络,未经考证)
本文介绍功能比较强大的pyinstaller
Github介绍:https://github.com/pyinstaller/pyinstaller
使用手册:https://pyinstaller.readthedocs.io/en/latest/#
一、 pyinstaller 介绍
以下摘取官网介绍(能力有限,英文可能翻译的不准确):
PyInstaller reads a Python script written by you. It analyzes your code to discover every other module and library your script needs in order to execute. Then it collects copies of all those files -- including