Fix Python Dependency Conflicts After an Update - Fix Externally Managed Environment pip Error-Resolve index.lock Exists in Git on Linux

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