Recover Lost Changes After Git Detached HEAD - How to Solve Python Permission Denied During pip Install-Fixing Python Dependency Conflicts with Incompatible Versions

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