-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·53 lines (44 loc) · 1.41 KB
/
install.sh
File metadata and controls
executable file
·53 lines (44 loc) · 1.41 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
#!/bin/bash
set -e # Exit on error
echo "=== AutoGEO Environment Setup ==="
# Check if conda is installed
if ! command -v conda &> /dev/null; then
echo "Error: conda not found. Please install Anaconda or Miniconda first."
echo "Visit: https://docs.conda.io/en/latest/miniconda.html"
exit 1
fi
# Create environment
echo "Creating conda environment 'autogeo' with Python 3.11..."
conda create -n autogeo python=3.11 -y
echo "✓ Environment created"
# Get the conda base path
CONDA_BASE=$(conda info --base)
source "$CONDA_BASE/etc/profile.d/conda.sh"
conda activate autogeo
# Upgrade pip
echo "Upgrading pip..."
pip install --upgrade pip
# Install basic dependencies
echo "Installing basic dependencies..."
pip install -r requirements.txt
echo "✓ Basic dependencies installed"
# Setup API keys
if [ ! -f "keys.env" ]; then
echo "Creating keys.env from template..."
cp keys.env.example keys.env
echo "⚠️ Please edit keys.env with your API keys before using AutoGEO"
else
echo "✓ keys.env already exists"
fi
echo ""
echo "=========================================="
echo "✓ Basic installation complete!"
echo "=========================================="
echo ""
echo "Next steps:"
echo " 1. Activate environment: conda activate autogeo"
echo " 2. Edit API keys: cp keys.env.example keys.env"
echo ""
echo "Optional: For AutoGEO Mini training, run:"
echo " bash install_mini.sh"
echo ""