Fixing 'git rebase index.lock file exists' Error - Working Around pip's Externally Managed Environment-Resolving Python Package Version Conflicts

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