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¶
sudo dnf install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf install python3-redoctor
On EL7, use sudo yum install python36-redoctor. The packages are signed and published through the normal GetPageSpeed Extras repository pipeline.
For Gixy's optional deep ReDoS mode, install the companion metapackage instead. It pulls the correct ReDoctor package for the distribution:
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: