Install Issues
You may encounter various environment issues when installing Hermes Agent. This page covers the most common installation failures and their solutions.
Python Version Incompatibility
Section titled “Python Version Incompatibility”Symptom: SyntaxError or Python version not supported during installation.
Cause: Hermes Agent requires Python 3.10 or higher.
Solutions:
# Check current Python versionpython3 --version
# If version is below 3.10, upgrade neededUpgrade Python on Ubuntu / Debian
Section titled “Upgrade Python on Ubuntu / Debian”sudo add-apt-repository ppa:deadsnakes/ppasudo apt updatesudo apt install python3.11 python3.11-venv python3.11-dev
# Set as default versionsudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1Upgrade Python on macOS
Section titled “Upgrade Python on macOS”Use uv to Manage Python
Section titled “Use uv to Manage Python”# uv automatically installs the correct Python versioncurl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bashDependency Conflicts
Section titled “Dependency Conflicts”Symptom: Dependency version conflict errors during pip install.
Cause: Packages already installed in system Python environment are incompatible with Hermes Agent dependencies.
Solutions:
# Method 1: Use virtual environment (recommended)python3 -m venv ~/.hermes-venvsource ~/.hermes-venv/bin/activatepip install hermes-agent
# Method 2: Use one-line install script (auto-handles virtual environment)curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
# Method 3: Force reinstallpip install --force-reinstall hermes-agent
# Method 4: Use uv instead of pip (faster dependency resolution)pip install uvuv pip install hermes-agentPermission Denied
Section titled “Permission Denied”Symptom: Permission denied or [Errno 13] during installation.
Cause: Attempting to install to system-level Python directory without sufficient permissions.
Solutions:
# ❌ Do NOT use sudo to install# sudo pip install hermes-agent
# ✅ Method 1: Use --user flagpip install --user hermes-agent
# ✅ Method 2: Use virtual environmentpython3 -m venv myenvsource myenv/bin/activatepip install hermes-agent
# ✅ Method 3: Fix ~/.hermes directory permissionssudo chown -R $(whoami):$(whoami) ~/.hermesNetwork Timeout or Download Failure
Section titled “Network Timeout or Download Failure”Symptom: Cannot download packages or connection timeout during installation.
Cause: Network issues, especially accessing PyPI from mainland China may be slow.
Solutions:
# Method 1: Use domestic mirror (China users)pip install hermes-agent -i https://pypi.tuna.tsinghua.edu.cn/simple
# Method 2: Use Hermes China mirror install scriptcurl -fsSL https://res1.hermesagent.org.cn/install.sh | bash
# Method 3: Set pip to permanently use mirrorpip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# Method 4: Set proxyexport HTTPS_PROXY=http://127.0.0.1:7890pip install hermes-agentGit Clone Failure
Section titled “Git Clone Failure”Symptom: git clone timeout or connection refused.
Cause: GitHub access restricted.
Solutions:
# Method 1: Use GitHub mirrorgit clone https://ghproxy.com/https://github.com/NousResearch/hermes-agent.git
# Method 2: Configure Git proxygit config --global http.proxy http://127.0.0.1:7890git config --global https.proxy http://127.0.0.1:7890
# Method 3: Download zip directlywget https://github.com/NousResearch/hermes-agent/archive/refs/heads/main.zipunzip main.zipcd hermes-agent-mainpip install -e .WSL2 Specific Issues
Section titled “WSL2 Specific Issues”Symptom: Special errors when installing in WSL2.
Common Issues and Solutions:
# Issue 1: Missing build tools in WSL2sudo apt update && sudo apt install -y build-essential python3-dev
# Issue 2: Poor filesystem performance (cross Windows/Linux)# Don't install under /mnt/c/, use native Linux filesystem insteadcd ~git clone https://github.com/NousResearch/hermes-agent.git
# Issue 3: DNS resolution failureecho "nameserver 8.8.8.8" | sudo tee /etc/resolv.confDocker Installation Issues
Section titled “Docker Installation Issues”Symptom: Docker pull image fails.
Solutions:
# Method 1: Use domestic Docker mirror (China users)docker pull registry.cn-hangzhou.aliyuncs.com/nousresearch/hermes-agent:latest
# Method 2: Configure Docker proxymkdir -p /etc/systemd/system/docker.service.dcat > /etc/systemd/system/docker.service.d/proxy.conf << EOF[Service]Environment="HTTPS_PROXY=http://127.0.0.1:7890"EOFsudo systemctl daemon-reloadsudo systemctl restart docker
# Method 3: Manual import# Export image on machine with network accessdocker save nousresearch/hermes-agent:latest -o hermes-agent.tar# Transfer to target machine and importdocker load -i hermes-agent.taruv Installation Failure
Section titled “uv Installation Failure”Symptom: uv installation fails in one-line install script.
Solutions:
# Manually install uvcurl -fsSL https://astral.sh/uv/install.sh | sh
# Or install via pippip install uv
# Then re-run Hermes install scriptcurl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bashPost-Installation Verification
Section titled “Post-Installation Verification”After installation, run these commands to verify everything is working:
hermes --version # Confirm version numberhermes doctor # Comprehensive diagnosisIf hermes doctor shows all ✅, installation is successful.
Complete Reinstall Process
Section titled “Complete Reinstall Process”If none of the above solutions work, try a complete reinstall:
# 1. Backup important datacp -r ~/.hermes ~/.hermes.backup
# 2. Remove old installationpip uninstall hermes-agentrm -rf ~/.hermes-agentrm -rf ~/.hermes-venv
# 3. Reinstallcurl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
# 4. Restore datacp -r ~/.hermes.backup/memory ~/.hermes/cp -r ~/.hermes.backup/skills ~/.hermes/Related Pages
Section titled “Related Pages”- Common Errors — Common runtime errors
- Model Issues — LLM configuration issues
- hermes doctor — Automatic diagnostic tool
- Linux Installation — Detailed Linux installation guide