mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-09 22:08:13 -05:00
...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user