- Python 3.8+
- 4GB RAM
- 10GB free disk space
- Linux/macOS/Windows
- Python 3.10+
- 8GB RAM
- 20GB free disk space
- Linux (Ubuntu 20.04+)
- SSD storage
- CUDA-capable GPU (for deep learning components)
- Docker (for containerized deployment)
- Poetry or pip (for package management)
git clone https://github.com/openclaw/self-evolution.git
cd self-evolution# Using venv
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Using conda
conda create -n self-evolution python=3.10
conda activate self-evolutionpip install -r requirements.txt# Run all tests
python3 run_tests.py
# Run specific phase tests
python3 -m pytest evolution/tests/ -v
python3 -m pytest strategies/tests/ -v
python3 -m pytest metalearning/tests/ -v
python3 -m pytest advanced/tests/ -v# Install from PyPI (when available)
pip install openclaw-self-evolutiondocker build -t self-evolution:latest .docker run --rm -it self-evolution:latest bashdocker run --rm self-evolution:latest python3 run_tests.py# Install in editable mode
cd self-evolution
pip install -e .# Workspace path
export SELF_EVOLUTION_WORKSPACE="/path/to/workspace"
# Log level
export SELF_EVOLUTION_LOG_LEVEL="INFO"
# Safety level
export SELF_EVOLUTION_SAFETY_LEVEL="strict"
# Resource limits
export SELF_EVOLUTION_MAX_MEMORY="4GB"
export SELF_EVOLUTION_MAX_CPU="4"Create config.yaml:
# Evolution Configuration
evolution:
workspace_path: "/path/to/workspace"
log_file: "evolution.log"
max_iterations: 1000
auto_confirm: false
safety_checks: true
# Safety Configuration
safety:
level: "strict"
auto_rollback: true
validation_rules:
- "no_critical_changes_without_approval"
- "no_deleting_source_code"
- "no_modifying_safety_guards"
# Performance Configuration
performance:
max_memory: "4GB"
max_cpu: "4"
monitoring_enabled: true
metrics_interval: 60
# Logging Configuration
logging:
level: "INFO"
file: "self-evolution.log"
console: true
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"python3 verify_installation.pyThis will check:
- Python version compatibility
- All dependencies installed
- File permissions correct
- Tests can run successfully
- Configuration valid
β
Python version: 3.10.12
β
All dependencies installed
β
File permissions: OK
β
Tests: PASSING (20/20)
β
Configuration: VALID
python3 -m pytest evolution/tests/ -v --tb=short
python3 -m pytest strategies/tests/ -v --tb=short
python3 -m pytest metalearning/tests/ -v --tb=short
python3 -m pytest advanced/tests/ -v --tb=shortpython3 integration_test.pypython3 run_tests.py --verboseSymptom: ModuleNotFoundError: No module named 'evolution'
Solution:
# Install in editable mode
pip install -e .Symptom: PermissionError: [Errno 13] Permission denied
Solution:
# Fix permissions
chmod +x run_tests.py
chmod -R +x evolution/
chmod -R +x strategies/
chmod -R +x metalearning/
chmod -R +x advanced/Symptom: Tests failing with import errors
Solution:
# Ensure correct Python version
python3 --version # Should be 3.8+
# Reinstall dependencies
pip install --upgrade -r requirements.txt
# Clear Python cache
find . -type d -name __pycache__ -exec rm -rf {} +Symptom: MemoryError during training
Solution:
# Reduce batch size
# Reduce number of layers
# Use gradient accumulation
# Enable memory optimizationfrom evolution.core.evolution_cycle import EvolutionCycle
evolution = EvolutionCycle(safety_level="strict")evolution = EvolutionCycle(
safety_level="strict",
auto_rollback=True,
backup_before_change=True
)evolution = EvolutionCycle(
max_memory="4GB",
max_cpu=4,
max_gpu_memory="8GB"
)pip install torch torchvision
pip install tensorflow-gpupip install loguru
pip install richpip install horovod
pip install raypip install tensorboard
pip install matplotlib
pip install seabornAfter installation, try this:
from evolution.core import EvolutionCycle
# Create evolution cycle
evolution = EvolutionCycle()
# Run test evolution
result = evolution.run_evolution(
num_iterations=10,
safety_checks=True
)
print(f"Evolution status: {result['status']}")- Read USAGE.md for usage guide
- Review ARCHITECTURE.md for system architecture
- Check API.md for API documentation
- See PHASE_SUMMARY.md for phase summaries
Installation Version: 1.0.0
Last Updated: 2026-03-08