1#!/bin/bash 2if [ -d "venv" ]; then 3 echo "A venv folder already exists in this project!" 4 exit 0 5fi 6if command -v python3 >/dev/null 2>&1; then 7 echo "Currently creating a python virtual environment..." 8 python3 -m venv venv 9 source venv/bin/activate 10 echo "Done creating new venv folder and terminal is now using venv." 11 echo "Now attempting to install dependencies..." 12 pip install -r requirements.txt 13 echo "Successfully finished installing dependencies!" 14else 15 echo "Python 3 is not currently installed on your machine!" 16fi 17