Installation¶
Prerequisites¶
- Python 3.8 or higher
- pip (comes with Python)
Install¶
Verify¶
Upgrade¶
Uninstall¶
Isolated Install (recommended)¶
Use pipx to install d4-diag in an isolated environment so it doesn't interfere with other packages:
Virtual Environment¶
If you prefer a project-level virtual environment:
# Create and activate
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
# Install
pip install d4-diag
Troubleshooting¶
d4-diag: command not found after install
Your Python scripts directory may not be on your PATH. Try running as a module instead:
Or add the scripts directory to PATH:
- Windows: Add
%APPDATA%\Python\PythonXX\Scriptsto your PATH - macOS/Linux: Add
~/.local/binto your PATH
Next Steps¶
- Quick Start Guide - Run your first analysis
- Analyzing Code - Detailed analysis options