ResuMate_NVIDIA / setup.sh
cm0805's picture
Upload setup.sh
624c86c verified
raw
history blame
952 Bytes
#!/bin/bash
echo -e "\e[0;32m[INFO]\e[0m Installing virtualenv package..." &&
sudo apt-get install -y python3.10-venv &&
echo -e "\e[0;32m[INFO]\e[0m Creating virtual environment..." &&
python3 -m venv ./env &&
echo -e "\e[0;32m[INFO]\e[0m Activating virtual environment..." &&
source env/bin/activate &&
echo `which python3` &&
if [ -f "requirements.txt" ]; then
pip install wheel &&
echo -e "\e[0;32m[INFO]\e[0m Installing python packages from requirements.txt..." &&
pip install -r requirements.txt
else
echo -e "\e[0;33m[WARNING]\e[0m Not found: requirements.txt. Skipping python packages installation."
fi &&
if [ -f "packages.txt" ]; then
echo -e "\e[0;32m[INFO]\e[0m Installing apt packages from packages.txt..." &&
sed 's/#.*//' packages.txt | xargs sudo apt-get install -y
else
echo -e "\e[0;33m[WARNING]\e[0m Not found: packages.txt. Skipping apt packages installation."
fi &&
echo -e "\e[0;32m[INFO]\e[0m Done!"