fix(libretranslate): pin Python 3.12 for venv to ensure PyTorch compatibility (#9699)

This commit is contained in:
CanbiZ
2025-12-05 23:10:08 +01:00
committed by GitHub
parent 08cb3cc76a
commit 6409d64b93
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ function update_script() {
exit
fi
setup_uv
PYTHON_VERSION="3.12" setup_uv
if check_for_gh_release "libretranslate" "LibreTranslate/LibreTranslate"; then
msg_info "Stopping Service"
@ -39,7 +39,7 @@ function update_script() {
msg_info "Updating LibreTranslate"
cd /opt/libretranslate
source .venv/bin/activate
$STD pip install -U libretranslate
$STD uv pip install -U libretranslate
msg_ok "Updated LibreTranslate"
msg_info "Starting Service"