Fix pip install: Dependency Conflict and Permission Denied - Resolving 'index.lock file exists' in Git on macOS-Git Unrelated Histories Error Workaround

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