File size: 1,196 Bytes
927854c |
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 |
#!/bin/bash
# Setup script for Anaconda environment
# This script creates and activates a conda environment for the Research AI Assistant
echo "============================================================"
echo "Setting up Anaconda environment for Research AI Assistant"
echo "============================================================"
# Check if conda is available
if ! command -v conda &> /dev/null; then
echo "❌ Error: conda command not found"
echo " Please install Anaconda or Miniconda first"
echo " Download from: https://www.anaconda.com/products/distribution"
exit 1
fi
echo "✓ Conda found"
# Create environment from environment.yml
echo ""
echo "Creating conda environment from environment.yml..."
conda env create -f environment.yml
if [ $? -eq 0 ]; then
echo "✓ Environment created successfully"
else
echo "❌ Environment creation failed"
exit 1
fi
# Activate environment
echo ""
echo "To activate the environment, run:"
echo " conda activate research-ai-assistant"
echo ""
echo "Or on Windows:"
echo " conda activate research-ai-assistant"
echo ""
echo "Then install remaining dependencies:"
echo " pip install -r requirements.txt"
|