Installation Troubleshooting¶
This guide helps you troubleshoot and resolve common installation issues with REROUTE.
Pre-Installation Checklist¶
Before installing REROUTE, ensure you have:
- [ ] Python 3.8 or higher installed
- [ ] pip or uv package manager installed
- [ ] Virtual environment created (recommended)
- [ ] Write permissions for the installation directory
Python Version Issues¶
Check Your Python Version¶
Required: Python 3.8 or higher
Issue: Python Too Old¶
Symptoms:
Solution:
- Install Python 3.8+
- Windows: Download from python.org
- macOS:
brew install python@3.11 -
Linux:
sudo apt-get install python3.11(Ubuntu/Debian) -
Use Python Version Manager (Recommended)
- pyenv (macOS/Linux):
Package Manager Issues¶
Issue: pip Not Found¶
Symptoms:
Solution:
Issue: pip Too Old¶
Symptoms:
Solution:
Issue: Using uv (Recommended)¶
Why uv? uv is 10-100x faster than pip.
Install uv:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Use uv for installation:
Virtual Environment Issues¶
Why Use Virtual Environments?¶
Virtual environments isolate your project dependencies, preventing conflicts between projects.
Creating a Virtual Environment¶
Using venv (built-in):
# Create
python -m venv venv
# Activate (macOS/Linux)
source venv/bin/activate
# Activate (Windows)
venv\Scripts\activate
# Deactivate
deactivate
Using uv (faster):
# Create
uv venv
# Activate (macOS/Linux)
source .venv/bin/activate
# Activate (Windows)
.venv\Scripts\activate
Installation Errors¶
Issue: Permission Denied¶
Symptoms:
Solution:
Option 1: Use virtual environment (Recommended)
python -m venv venv
source venv/bin/activate # macOS/Linux
# or
venv\Scripts\activate # Windows
pip install reroute
Option 2: Use --user flag
Issue: Network/Proxy Issues¶
Symptoms:
Solution:
-
Check internet connection:
-
Use PyPI mirror:
Dependency Issues¶
Issue: FastAPI Not Installing¶
Symptoms:
Solution:
Install with extras:
Or install dependencies separately:
OS-Specific Guides¶
Windows¶
Common Issues:
-
Path too long error:
-
Python not in PATH:
- Add Python to PATH during installation
- Or use full path:
C:\Python311\python.exe -m pip install reroute
macOS¶
Common Issues:
-
Xcode command line tools missing:
-
Homebrew Python vs system Python:
Linux (Ubuntu/Debian)¶
Common Issues:
-
Missing build dependencies:
-
System Python restrictions:
Port Conflict Issues¶
Issue: Port Already in Use¶
Symptoms:
Solution:
Option 1: Use different port
Option 2: Kill process using port
Windows:
macOS/Linux:
Verification Steps¶
After installation, verify everything works:
1. Check Installation¶
Expected output: Current version number
2. Check CLI¶
Expected output: Version information
3. Create Test Project¶
Expected: Server starts successfully
Still Having Issues?¶
-
Check Python path:
-
Clear pip cache:
-
Try fresh virtual environment:
Getting Help¶
If you're still stuck:
- Check existing issues: GitHub Issues
- Create minimal reproduction: Isolate the problem
- Provide system information:
- File new issue: Include error messages and system information
Quick Reference¶
| Problem | Solution |
|---|---|
| Python too old | Install Python 3.8+ |
| Permission denied | Use virtual environment |
| Network error | Check internet/proxy |
| Port in use | Change port or kill process |
| Import error | Reinstall in virtual environment |
Next Steps¶
Once installation is successful:
- Quick Start Guide - Build your first API
- Hello World Tutorial - Learn by doing
- User Guide - Deep dive into features