Installation¶
ReDoctor is a pure Python package with no external dependencies, making installation simple and reliable.
Requirements¶
- Python: 3.6 or higher
- Dependencies: None (pure Python)
- OS: Linux, macOS, Windows
Quick Install¶
Verify Installation¶
After installation, verify it works:
Development Installation¶
For contributing or development:
# Clone the repository
git clone https://github.com/GetPageSpeed/redoctor.git
cd redoctor
# Create virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
# Verify installation
redoctor --version
python -c "import redoctor; print(redoctor.__version__)"
Upgrading¶
Uninstalling¶
Virtual Environment Best Practices¶
We recommend using virtual environments to avoid dependency conflicts:
Docker¶
For containerized environments:
Build and run:
Troubleshooting¶
"Command not found: redoctor"¶
If you installed with pip install --user, ensure your user bin directory is in your PATH:
Import Error¶
If Python can't find the module:
Permission Denied¶
On some systems, you may need to use sudo or --user:
# Option 1: User install (recommended)
pip install --user redoctor
# Option 2: System install (not recommended)
sudo pip install redoctor
Next Steps¶
Now that you have ReDoctor installed: