This guide provides instructions for setting up Python environments for HADDOCK3 development and usage.
HADDOCK3 requires Python 3.9 or later:
- Recommended: Python 3.14+ for best compatibility
- Supported versions: 3.9-3.14
- Minimum required: Python 3.9
HADDOCK3 requires Python 3.9 or later.
uv is a modern Python package manager that provides fast dependency resolution and virtual environment management:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and activate a virtual environment
uv venv .venv --python=3.14
source .venv/bin/activateAlternatively, use your system's package manager:
sudo apt-get update
sudo apt-get install python3.14 python3.14-dev python3.14-venvbrew install python@3.14python3.14 -m venv .venv
source .venv/bin/activate Python version conflicts:
# Check which Python is being used
which python
which python3Virtual environment activation issues:
# Ensure proper shell integration
echo $VIRTUAL_ENVPermission errors:
# Use --user flag or virtual environment
pip install --user package# Check installed packages
pip list
# Check package locations
pip show package_name
# Verify Python environment
python -c "import sys; print(sys.executable)"