How to fix ModuleNotFoundError: No module named 'redis'

ModuleNotFoundError: No module named 'redis'
For web development, always isolate your dependencies in a virtual environment.
Using Docker? Ensure you add `redis` to your `requirements.txt` and rebuild the container.
python -m pip install redis

Verification

Command
python -c "import redis; print(redis.__version__)"
Expected output
Success! redis version x.y.z (e.g., 2.4.0)