Installation
This guide covers installing DeepFix on your system. DeepFix can be installed using Docker (recommended for server deployment) or locally using Python package managers.
Prerequisites
- Python 3.11 or higher
- pip or uv package manager
- (Optional) Docker and Docker Compose for containerized deployment
Option 1: Docker Installation (Recommended for Server Deployment)
Docker installation is recommended for server deployment as it provides a consistent environment and easy deployment.
Step 1: Clone the Repository
Step 2: Configure Environment
# Copy environment example
cp env.example .env
# Edit .env with your API keys and configuration
# See Configuration section for details
Step 3: Start with Docker Compose
# Start the server using docker-compose
docker-compose up -d
# Or using Make (if available)
make docker-compose-up
The server will be available at http://localhost:8844 by default.
See the Docker Deployment Guide for detailed instructions and configuration options.
Option 2: Local Installation
Local installation is recommended for development and testing.
Step 1: Clone the Repository
Step 2: Create Virtual Environment
Using uv (recommended):
uv venv --python 3.11
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
Using venv:
python3.11 -m venv venv
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
Step 3: Install DeepFix
Using uv (recommended):
Using pip:
This installs all DeepFix packages including:
- deepfix-core: Core models and types
- deepfix-sdk: Python client SDK
- deepfix-server: Analysis server
Step 4: Install Individual Packages (Optional)
If you only need specific components:
# Install only the SDK
cd deepfix-sdk
uv pip install -e .
# Install only the server
cd deepfix-server
uv pip install -e .
# Install only the core
cd deepfix-core
uv pip install -e .
Step 5: Verify Installation
Verify the installation by checking the version:
# Check SDK version
uv run python -c "import deepfix_sdk; print(deepfix_sdk.__version__)"
# Check server version
uv run deepfix-server version
Installation from PyPI
DeepFix packages are also available on PyPI:
# Install SDK
pip install deepfix-sdk
# Install server
pip install deepfix-server
# Install core
pip install deepfix-core
Development Installation
For development, install with all development dependencies:
# Clone repository
git clone https://github.com/delcaux-labs/deepfix.git
cd deepfix
# Create virtual environment
uv venv --python 3.11
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install in editable mode
uv pip install -e ".[dev]"
# Or install individual packages
cd deepfix-sdk
uv pip install -e ".[dev]"
Post-Installation Setup
After installation, configure DeepFix:
- Configure Server (if running server):
- Create
.envfile with LLM configuration -
See Configuration Guide for details
-
Configure MLflow (optional):
- Set up MLflow tracking server
- Configure MLflow URI in your code
-
Verify Setup:
- Start the server:
uv run deepfix-server launch - Test client connection
- See Quickstart Guide for examples
Troubleshooting
Common Installation Issues
Problem: Import errors after installation
Problem: Missing dependencies
Problem: Python version mismatch
Problem: Permission errors on Windows
# Solution: Run PowerShell/Command Prompt as Administrator
# Or use --user flag
uv pip install --user -e .
Server-Specific Issues
Problem: Server fails to start
- Check if port 8844 is already in use
- Verify
.envfile configuration - Check LLM API credentials
Problem: LLM connection errors
- Verify
DEEPFIX_LLM_API_KEYis set - Check
DEEPFIX_LLM_BASE_URLis correct - Ensure network connectivity to LLM provider
See the Configuration Guide and Deployment Guide for more troubleshooting tips.
Next Steps
- Quickstart Guide - Get started with DeepFix
- Configuration Guide - Configure DeepFix for your needs
- Deployment Guide - Deploy DeepFix in production