DependencyError: gitpython and a git installation required for getProject()

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): macOS Sonoma Version 14.6.1
PsychoPy version (e.g. 1.84.x): v2024.2.1
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?:
I want to include a survey in our online task.

What did you try to make it work?:
I used Pavlovia survey. However, the survey got stuck when it’s done. I got suggestions on that to use newest version of PsychoPy, so I updated mine of v2023.2x to the newest one by directly downloading the standalone version.

What specifically went wrong when you tried that?:
When I opened my task that was developed on v2023.2x from the newest PsychoPy, I got following error:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 811, in fileSave
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 870, in fileSaveAs
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 1460, in getProject
psychopy.exceptions.DependencyError: gitpython and a git installation required for getProject()

I looked into folder /Applications/PsychoPy.app/Contents/Resources/lib/python3.10, and didn’t find gitpython there. I tried to pip install gitpython directly to that path, but got a permission error: PermissionError: [Errno 1] Operation not permitted

This issue is actually preventing me from saving any new script that’s directly developed from the builder. Really need help on this. Thank you very much.