-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
Β·55 lines (43 loc) Β· 1.54 KB
/
install.sh
File metadata and controls
executable file
Β·55 lines (43 loc) Β· 1.54 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Advanced Research Agent Installation Script
echo "π Installing Advanced Research Agent..."
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "β Python 3 is required but not installed. Please install Python 3.8+ first."
exit 1
fi
# Check Python version
python_version=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
required_version="3.8"
if [ "$(printf '%s\n' "$required_version" "$python_version" | sort -V | head -n1)" != "$required_version" ]; then
echo "β Python 3.8+ is required. Current version: $python_version"
exit 1
fi
echo "β
Python version: $python_version"
# Create virtual environment
echo "π¦ Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "π§ Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "β¬οΈ Upgrading pip..."
pip install --upgrade pip
# Install dependencies
echo "π Installing dependencies..."
cd advanced-agent
pip install -r requirements.txt
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "π Creating .env file from template..."
cp env.example .env
echo "β οΈ Please edit .env file with your API keys and configuration"
fi
echo "β
Installation complete!"
echo ""
echo "π― To get started:"
echo "1. Edit advanced-agent/.env with your API keys"
echo "2. Activate virtual environment: source venv/bin/activate"
echo "3. Run the agent: cd advanced-agent && python main.py"
echo ""
echo "π For more information, see README.md"