-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
38 lines (29 loc) · 941 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Define dependencies
dependencies=("python3" "python3-pip" "git")
# Install dependencies
for dependency in "${dependencies[@]}"; do
if ! command -v "$dependency" &> /dev/null; then
echo "Installing $dependency..."
sudo apt-get install -y "$dependency"
fi
done
# Update conda
echo "Updating conda..."
conda update conda -y
# Update conda environment
echo "Updating conda environment..."
CONDA_NO_PLUGINS=true conda env update --file environment.yml --name base
# Install Python packages
echo "Installing Python packages..."
pip3 install pytorch transformers beautifulsoup4 selenium nltk qiskit openai datasets
# Verify the installation of selenium
pip3 show selenium
# Clone the repository
echo "Cloning the repository..."
git clone https://github.com/SilenceGeneric/DarkAI.git
# Navigate to the project directory
cd DarkAI
# Run the main script
echo "Running the main script..."
python3 main.py