#!/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"