Start fresh from requirements.
Section: Full environment reset
Delete and recreate on POSIX
bash
bash
rm -rf .venv && python -m venv .venv && source .venv/bin/activate && python -m pip install -U pip setuptools wheel && python -m pip install -r requirements.txtExplanation
Often the fastest and cleanest fix when a venv becomes inconsistent.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Full environment reset