Python Notes
Python
Tip
Recommended Python version by SD.Next is python==3.12
SD.Next supports pretty much all current versions of Python, but with some disclaimers:
python==3.9is end-of-life and no longer validated by SD.Next, so compatibility is limitedpython==3.10is end-of-support and not recommendedpython==3.11is fully supportedpython==3.12is fully supported and is the recommended version as most package dependencies come pre-compiled for itpython==3.13is supported, but some packages used by specific features are not availablepython==3.14is in early stages of support and marked as experimental
Compile Required
Important
Python 3.13 and 3.14 are not recommended for general use due to limited package compatibility
Python 3.13 and 3.14 require many packages to be built from source which requires additional build tools and much longer installation times
At the very minimum, you will need a C++ compiler toolchain and Python development headers installed on your system
Missing Features
Known missing functionality with python 3.13 and 3.14 includes:
insightfaceno longer maintained and only provides pre-compiled wheels for up topython==3.12,
so all face swapping features will not work onpython==3.13until a compatible version ofinsightfaceis releasedrembgbackground removal depends on number of packages that do not provide compatible wheels- beta sampling when used with some samplers may fail due to incompatible
torchsdepackage
Backend Compatibility
Compute backends such as torch and onnxruntime also have varying levels of support for different Python versions
- For
cudaandrocmwhich are under active development,
support for all python versions is generally good - For older and less actively developed backends such as
zludaanddirectml,
support for newer python versions is often delayed or non-existent