This commit is contained in:
unknown
2025-12-05 13:57:41 -08:00
parent ff3e9a9275
commit 8826548a1d

View File

@@ -631,7 +631,7 @@ function install_python_packages {
python3 -m pip cache purge > /dev/null 2>&1
python3 -m pip install --upgrade pip > /dev/null 2>&1
python3 -m pip install --upgrade --no-cache-dir --progress-bar on --disable-pip-version-check --use-pep517 -r "$SCRIPT_DIR/requirements.txt" || exit 1
torch_ver=$(pip show torch 2>/dev/null | awk '/^Version:/{print $2}')
torch_ver=$(python3 -m pip show torch 2>/dev/null | awk '/^Version:/{print $2}')
if [[ "$(printf '%s\n%s\n' "$torch_ver" "2.2.2" | sort -V | head -n1)" == "$torch_ver" ]]; then
python3 -m pip install --upgrade --no-cache-dir --use-pep517 "numpy<2" || exit 1
fi