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
14f102a4d9
commit
bdbea2c4dc
@ -100,9 +100,17 @@ done
|
||||
|
||||
# Set up virtual environment ==============================
|
||||
|
||||
msg_info "Setting up the virtual environment for translations..."
|
||||
if [ ! -d "$VENV_PATH" ]; then
|
||||
python3 -m venv "$VENV_PATH"
|
||||
# msg_info "Setting up the virtual environment for translations..."
|
||||
|
||||
|
||||
#mkdir -p /opt
|
||||
#chmod 755 /opt
|
||||
|
||||
|
||||
if [ ! -d "$VENV_PATH" ] || [ ! -f "$VENV_PATH/bin/activate" ]; then
|
||||
msg_info "Creating the virtual environment..."
|
||||
python3 -m venv --system-site-packages "$VENV_PATH"
|
||||
|
||||
|
||||
if [ ! -f "$VENV_PATH/bin/activate" ]; then
|
||||
msg_error "Failed to create virtual environment. Please check your Python installation."
|
||||
@ -110,8 +118,13 @@ if [ ! -d "$VENV_PATH" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
source "$VENV_PATH/bin/activate"
|
||||
|
||||
|
||||
pip install --upgrade pip
|
||||
|
||||
|
||||
if pip install --break-system-packages --no-cache-dir googletrans==4.0.0-rc1; then
|
||||
msg_ok "Virtual environment configured and googletrans installed."
|
||||
else
|
||||
@ -122,6 +135,7 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "$VIRTUAL_ENV" ]; then
|
||||
deactivate
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user