mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 11:50:06 +00:00
fix(libretranslate): pin Python 3.12 for venv to ensure PyTorch compatibility (#9699)
This commit is contained in:
parent
08cb3cc76a
commit
6409d64b93
2 changed files with 4 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ $STD apt install -y \
|
|||
python3-icu
|
||||
msg_ok "Setup Python3"
|
||||
|
||||
setup_uv
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
fetch_and_deploy_gh_release "libretranslate" "LibreTranslate/LibreTranslate"
|
||||
|
||||
msg_info "Setup LibreTranslate (Patience)"
|
||||
|
|
@ -42,7 +42,7 @@ if [[ -z "$TORCH_VERSION" ]]; then
|
|||
TORCH_VERSION="2.5.0"
|
||||
fi
|
||||
cd /opt/libretranslate
|
||||
$STD uv venv .venv
|
||||
$STD uv venv .venv --python 3.12
|
||||
$STD source .venv/bin/activate
|
||||
$STD uv pip install --upgrade pip setuptools
|
||||
$STD uv pip install Babel==2.12.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue