从命令行导入
从JSON导入
python -m nuitka
--module
--standalone
--onefile
--python-debug
--mode="accelerated"
--python-flag=
--python-for-scons="undefined"
--prefer-source-code
--follow-imports
--nofollow-imports
--follow-stdlib
--onefile-no-compression
--onefile-as-archive
--onefile-tempdir-spec="{TEMP}/onefile_{PID}_{TIME}"
--onefile-child-grace-time="5000"
--warn-implicit-exceptions
--warn-unusual-code
--assume-yes-for-downloads
--run
--debugger
--full-compat
--remove-output
--no-pyi-file
--no-pyi-stubs
--output-filename="<program_name>"
--output-dir="./"
--deployment
--debug
--no-debug-immortal-assumptions
--unstripped
--profile
--trace-execution
--low-memory
--generate-c-only
--xml="undefined"
--devel-missing-code-helpers
--devel-missing-trust
--devel-recompile-c-only
--devel-internal-graph
--clang
--mingw64
--lto="auto"
--static-libpython="auto"
--msvc="undefined"
--jobs="undefined"
--cf-protection="auto"
--disable-ccache
--disable-dll-dependency-cache
--force-dll-dependency-cache-update
--disable-cache=
--clean-cache=
--pgo-c
--report-diffable
--quiet
--show-scons
--no-progressbar
--show-progress
--show-memory
--show-modules
--verbose
--report="undefined"
--show-modules-output="undefined"
--verbose-output="undefined"
--force-stdout-spec="undefined"
--force-stderr-spec="undefined"
--windows-uac-admin
--windows-uac-uiaccess
--windows-console-mode="force"
--onefile-windows-splash-screen-image="undefined"
--macos-create-app-bundle
--macos-sign
--macos-app-mode="gui"
--macos-target-arch="native"
--macos-app-icon="python"
--macos-signed-app-name="undefined"
--macos-app-name="undefined"
--macos-sign-identity="ad-hoc"
--macos-app-version="undefined"
--linux-icon="undefined"
--company-name="undefined"
--product-name="undefined"
--file-version="undefined"
--product-version="undefined"
--file-description="undefined"
--copyright="undefined"
--trademarks="undefined"
--plugin-list
--enable-plugins=
--disable-plugins=
--target="undefined"
--show-anti-bloat-changes
{
"main": {
"value": [],
"user_provides_choices": {
"main": {
"i18n": "",
"command": {
"original": "main.py"
},
"enabled": true,
"user_provide": true
}
}
},
"onefile_child_grace_time": {
"value": "time",
"user_provides_choices": {
"time": {
"i18n": "",
"command": {
"original": "5000"
},
"enabled": true,
"user_provide": true
}
}
}
}
命令行输出
JSON输出
Module mode (--module)
Standalone mode (--standalone)
Onefile mode (--onefile)
Python debug (--python-debug)
Mode (--mode)
Accelerated mode (accelerated)
Python flags (--python-flag)
选择
Python path for Scons (--python-for-scons)
选择
Main program path (--main)
选择
Prefer source code (--prefer-source-code)
Include package (--include-package)
选择
Include module (--include-module)
选择
Include plugin directory (--include-plugin-directory)
选择
Include plugin files (--include-plugin-files)
选择
Follow all imports (--follow-imports)
Do not recurse into any imports (--nofollow-imports)
Follow imports into stdlib (--follow-stdlib)
Follow import to module (--follow-import-to)
选择
Do not follow import to module (--nofollow-import-to)
选择
No compression for onefile (--onefile-no-compression)
Use archive for onefile (--onefile-as-archive)
Onefile temp directory location (--onefile-tempdir-spec)
User temp directory ({TEMP}/onefile_{PID}_{TIME})
Onefile child process grace time (--onefile-child-grace-time)
5000
Include package data (--include-package-data)
选择
Include data files (--include-data-files)
选择
Include data directory (--include-data-dir)
选择
Do not include data files (--noinclude-data-files)
选择
Include external data for onefile (--include-onefile-external-data)
选择
List package data (--list-package-data)
选择
Include raw directory (--include-raw-dir)
选择
Include distribution metadata (--include-distribution-metadata)
选择
Do not include DLLs (--noinclude-dlls)
选择
List package DLLs (--list-package-dlls)
选择
List EXE files for the given package (--list-package-exe)
选择
Warn about implicit exceptions (--warn-implicit-exceptions)
Warn about unusual code (--warn-unusual-code)
Assume yes for downloads (--assume-yes-for-downloads)
Disable mnemonic warning (--nowarn-mnemonic)
选择
Run immediately (--run)
Run in debugger (--debugger)
Full CPython compatibility (--full-compat)
User package config files (--user-package-configuration-files)
选择
File reference choice (--file-reference-choice)
选择
Module name choice (--module-name-choice)
选择
Remove build folder (--remove-output)
Do not create .pyi file (--no-pyi-file)
Do not create pyi stubs (--no-pyi-stubs)
Output filename (--output-filename)
Program name (<program_name>)
Output directory (--output-dir)
Current directory (./)
Deployment mode (--deployment)
No deployment flag (--no-deployment-flag)
选择
Force runtime environment variable (--force-runtime-environment-variable)
选择
Debug mode (--debug)
Disable debug checks for Immortal Objects (--no-debug-immortal-assumptions)
Do not remove debug info (--unstripped)
Profiling (--profile)
Trace execution (--trace-execution)
Low memory mode (--low-memory)
Generate C source only (--generate-c-only)
Output XML (--xml)
选择
Experimental (--experimental)
选择
Create environment from report (--create-environment-from-report)
选择
Devel - missing code helpers (--devel-missing-code-helpers)
Devel - missing trust (--devel-missing-trust)
Devel - recompile C source only (--devel-recompile-c-only)
Devel - internal graph (--devel-internal-graph)
Force clang (--clang)
Force mingw64 (--mingw64)
Link time optimization (--lto)
auto (auto)
Use Python static library (--static-libpython)
auto (auto)
Use specific MSVC version (--msvc)
选择
Number of parallel compile tasks (--jobs)
选择
gcc compiler CF protection mode (--cf-protection)
Automatic (auto)
Disable ccache (--disable-ccache)
Disable DLL dependency cache (--disable-dll-dependency-cache)
Force DLL dependency cache update (--force-dll-dependency-cache-update)
Disable cache (--disable-cache)
选择
Clean cache (--clean-cache)
选择
Profile Guided Optimization (--pgo-c)
PGO arguments (--pgo-args)
选择
PGO executable (--pgo-executable)
选择
Report diffable (--report-diffable)
Quiet mode (--quiet)
Show scons (--show-scons)
No progress bar (--no-progressbar)
Show progress (--show-progress)
Show memory (--show-memory)
Show modules (--show-modules)
Verbose mode (--verbose)
Output report (--report)
选择
Show modules output path (--show-modules-output)
选择
Verbose output path (--verbose-output)
选择
Report user provided (--report-user-provided)
选择
Report template (--report-template)
选择
Force standard output spec (--force-stdout-spec)
选择
Force standard error spec (--force-stderr-spec)
选择
Request Windows UAC admin privileges (--windows-uac-admin)
Request Windows UAC UIAccess (--windows-uac-uiaccess)
Windows console mode (--windows-console-mode)
Force mode (force)
Onefile Windows splash screen image (--onefile-windows-splash-screen-image)
选择
Windows icon (ico file) (--windows-icon-from-ico)
选择
Windows icon (exe file) (--windows-icon-from-exe)
选择
Create macOS application bundle (--macos-create-app-bundle)
macOS signing notarization (--macos-sign)
macOS application mode (--macos-app-mode)
GUI mode (gui)
macOS target architecture (--macos-target-arch)
Native architecture (native)
Path to macOS application icon (--macos-app-icon)
Python icon (python)
macOS signed application name (--macos-signed-app-name)
选择
macOS application name (--macos-app-name)
选择
macOS signing identity (--macos-sign-identity)
Ad-hoc signing (ad-hoc)
macOS application version (--macos-app-version)
1.0
Request macOS protected resource permission (--macos-app-protected-resource)
选择
Linux icon (--linux-icon)
选择
Company name (--company-name)
选择
Product name (--product-name)
选择
File version (--file-version)
选择
Product version (--product-version)
选择
File description (--file-description)
选择
Copyright text (--copyright)
选择
Trademarks text (--trademarks)
选择
Plugin list (--plugin-list)
Enable plugins (--enable-plugins)
选择
Disable plugins (--disable-plugins)
选择
User plugin (--user-plugin)
选择
Module parameter (--module-parameter)
选择
Show source changes (--show-source-changes)
选择
Target (--target)
选择
Show anti-bloat changes (--show-anti-bloat-changes)
No-include setuptools mode (--noinclude-setuptools-mode)
选择
No-include pytest mode (--noinclude-pytest-mode)
选择
No-include unittest mode (--noinclude-unittest-mode)
选择
No-include pydoc mode (--noinclude-pydoc-mode)
选择
No-include IPython mode (--noinclude-IPython-mode)
选择
No-include dask mode (--noinclude-dask-mode)
选择
No-include numba mode (--noinclude-numba-mode)
选择
No-include default mode (--noinclude-default-mode)
选择
No-include custom mode (--noinclude-custom-mode)
选择
playwright include browser (--playwright-include-browser)
选择
spaCy language model (--spacy-language-model)
选择
Basic settings
Control which modules and packages to include in the result
Control imported modules
Onefile options
Data files
Metadata support
DLL (dynamic link library) files
Control warnings issued by Nuitka
Execute immediately after compilation
Compilation options
Output options
Deployment control
Environment control
Debug features
Nuitka development features
Backend C compiler choice
Cache control
PGO (Profile Guided Optimization) compilation options
Tracing features
General OS settings
Windows-specific controls
macOS-specific controls
Linux-specific controls
Binary version information
Plugin control
Cross-compilation
'Anti-bloat' plugin options (Category: Core)
'Playwright' plugin options
Spacy plugin options (Category: package support)
输入
输出
编辑