File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Enhanced Python virtual environment setup script without Zsh installation and setup
3+ # Enhanced Python virtual environment setup script with global zap-cli and global package installation
44set -e
55
66# Colors for output
@@ -56,7 +56,7 @@ echo -e "${YELLOW}Activating the virtual environment...${NC}"
5656source " $VENV_DIR /bin/activate"
5757
5858# Upgrade pip and install dependencies from requirements.txt
59- echo -e " ${YELLOW} Upgrading pip and installing packages...${NC} "
59+ echo -e " ${YELLOW} Upgrading pip and installing packages in the virtual environment ...${NC} "
6060pip install --upgrade pip
6161pip install -r " $REQUIREMENTS_FILE "
6262
7070 exit 1
7171fi
7272
73+ # Install pip packages globally (if any additional packages need to be globally installed)
74+ echo -e " ${YELLOW} Installing global pip packages...${NC} "
75+ sudo pip install -r " $REQUIREMENTS_FILE " # Install globally
76+
7377# Final messages
7478echo -e " ${GREEN} Setup complete. Virtual environment is ready to use.${NC} "
7579echo -e " ${GREEN} To activate the virtual environment manually, run:${NC} "
You can’t perform that action at this time.
0 commit comments