How to fix ModuleNotFoundError: No module named 'markupsafe'

ModuleNotFoundError: No module named 'markupsafe'
Recommended: Install via pip into your active environment.
python -m pip install markupsafe

Verification

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