How to fix ModuleNotFoundError: No module named 'websockets'

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

Verification

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