Fix pip Externally Managed Environment Errors - How to Recover from a Detached HEAD in Git After a Rebase-Fix VS Code Breakpoint Not Hit in Docker Container

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.