fix(docker): override PEP 668 externally-managed-environment restriction

Add PIP_BREAK_SYSTEM_PACKAGES=1 environment variable to allow system-wide 
pip installations in Ubuntu 24.04 container environment.

Ubuntu 24.04 includes Python 3.12 with PEP 668 enforcement which blocks 
pip installations outside virtual environments. Since this is a containerized 
environment where system package conflicts are not a concern, we safely 
override this restriction.

Resolves error: "externally-managed-environment" preventing PyTorch and 
dependency installation during Docker build process.
This commit is contained in:
clsferguson 2025-09-22 09:05:19 -06:00 committed by GitHub
parent cf52512e20
commit bc2dffa0b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
COMFY_AUTO_INSTALL=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
EXT_PARALLEL=4 \
NVCC_APPEND_FLAGS="--threads 8" \
MAX_JOBS=32 \