How to Fix Git Detached HEAD and Checkout a Branch - Fixing pip Externally-Managed Environment Errors-How to Reduce Memory Usage When Python Reads Large Files

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