mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update install_proxmenux.sh
This commit is contained in:
parent
0f110e907c
commit
14f102a4d9
@ -104,26 +104,27 @@ msg_info "Setting up the virtual environment for translations..."
|
||||
if [ ! -d "$VENV_PATH" ]; then
|
||||
python3 -m venv "$VENV_PATH"
|
||||
|
||||
# Verificar si el entorno virtual se creó correctamente
|
||||
if [ ! -f "$VENV_PATH/bin/activate" ]; then
|
||||
msg_error "Failed to create virtual environment. Please check your Python installation."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Activar el entorno virtual antes de instalar googletrans
|
||||
source "$VENV_PATH/bin/activate"
|
||||
|
||||
# Instalar googletrans con soporte para entornos gestionados (Debian PEP 668)
|
||||
if pip install --break-system-packages --no-cache-dir googletrans==4.0.0-rc1; then
|
||||
msg_ok "Virtual environment configured and googletrans installed."
|
||||
else
|
||||
msg_error "Failed to install googletrans. Please check your internet connection."
|
||||
if [ -n "$VIRTUAL_ENV" ]; then
|
||||
deactivate
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$VIRTUAL_ENV" ]; then
|
||||
deactivate
|
||||
fi
|
||||
|
||||
# Download necessary files =================================
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user