How to fix ModuleNotFoundError: No module named 'starlette'

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

Verification

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