Python Notes
Python
Tip
The recommended Python version for SD.Next is python==3.12
SD.Next supports most current Python versions with some caveats:
python==3.9: End-of-life; compatibility is limited and not validatedpython==3.10: End-of-support; not recommendedpython==3.11: Fully supportedpython==3.12: Fully supported and recommended (most dependencies have pre-compiled wheels)python==3.13: Supported, but some packages lack compatible wheelspython==3.14: Supported experimentally with limited package compatibility
Compilation Required
Important
Python 3.13 and 3.14 require many packages to be built from source, which requires additional build tools and much longer installation times.
Missing Features
Known missing features with Python 3.13 and 3.14:
insightface: No longer maintained; only provides pre-compiled wheels up topython==3.12. Face swapping features are unavailable until a compatible version is released.rembg: Background removal depends on packages without compatible wheels- Beta sampling: May fail with some samplers due to incompatible
torchsdepackage
Backend Compatibility
Compute backends like torch and onnxruntime have varying support for different Python versions:
- CUDA and ROCm: Under active development; generally good support for all Python versions
- ZLUDA and DirectML: Older and less actively maintained; support for newer Python versions is often delayed or unavailable