Local Installation
This guide covers manual installation for development or non-Docker environments.
Prerequisites
Windows Users
If you encounter path length errors during installation, enable long path support:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /fRestart your terminal after running this command.
Step 1: Set Up Virtual Environment
Choose one of the following options:
# Create environment
conda create -n deeptutor python=3.10
# Activate environment
conda activate deeptutor# Create environment
python -m venv venv
# Activate (Windows)
venv\Scripts\activate
# Activate (macOS/Linux)
source venv/bin/activateStep 2: Install Dependencies
Option A: Automated Installation (Recommended)
# Using Python script
python scripts/install_all.py
# Or using shell script (macOS/Linux)
bash scripts/install_all.shOption B: Manual Installation
# Install Python dependencies
pip install -r requirements.txt
# Install Node.js dependencies
npm install --prefix webCommon Issues
If you see npm: command not found:
# Using Conda
conda install -c conda-forge nodejs
# Or install from https://nodejs.org/Step 3: Configure Environment
Make sure you have completed the Pre-Configuration steps:
- ✅ Created
.envfile with your API keys - ✅ (Optional) Customized
config/agents.yaml - ✅ (Optional) Downloaded demo knowledge bases
Step 4: Launch Application
Start Web Interface (Recommended)
python scripts/start_web.pyThis starts both the frontend (Next.js) and backend (FastAPI) servers.
Alternative: CLI Interface Only
python scripts/start.pyAccess URLs
| Service | URL | Description |
|---|---|---|
| Frontend | http://localhost:3782 | Main web interface |
| API Docs | http://localhost:8001/docs | Interactive API documentation |
Advanced: Start Services Separately
For development, you may want to run frontend and backend separately:
Backend (FastAPI)
python src/api/run_server.py
# Or with uvicorn directly
uvicorn src.api.main:app --host 0.0.0.0 --port 8001 --reloadFrontend (Next.js)
First, create web/.env.local:
NEXT_PUBLIC_API_BASE=http://localhost:8001Then start the development server:
cd web
npm install
npm run dev -- -p 3782Stopping the Service
Press Ctrl+C in the terminal to stop the service.
Port Still in Use?
If you see "port already in use" after pressing Ctrl+C:
macOS/Linux:
lsof -i :8001
kill -9 <PID>Windows:
netstat -ano | findstr :8001
taskkill /PID <PID> /FTroubleshooting
Backend fails to start
Checklist:
- Confirm Python version >= 3.10:
python --version - Confirm all dependencies installed:
pip install -r requirements.txt - Check if port 8001 is in use
- Verify
.envfile configuration
Frontend cannot connect to backend
Solutions:
- Confirm backend is running: visit http://localhost:8001/docs
- Check browser console for error messages
- Create
web/.env.localwith:bashNEXT_PUBLIC_API_BASE=http://localhost:8001
WebSocket connection fails
Checklist:
- Confirm backend is running
- Check firewall settings
- Verify WebSocket URL format:
ws://localhost:8001/api/v1/...
Next Step: Docker Deployment →
