Saving error when using Psychopy in Anaconda

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): v2022.1.4
Standard Standalone? (y/n) If not then what?: n, Anaconda
**What are you trying to achieve?: Save experiment file

**What did you try to make it work?: Restarted anaconda and psychopy

**What specifically went wrong when you tried that?: When trying to save the file I get:

Traceback (most recent call last):
  File "C:\Users\leonb\anaconda3\envs\psychopy2\lib\site-packages\psychopy\app\builder\builder.py", line 790, in fileSaveAs
    self.project = pavlovia.getProject(filename)
  File "C:\Users\leonb\anaconda3\envs\psychopy2\lib\site-packages\psychopy\projects\pavlovia.py", line 1239, in getProject
    raise exceptions.DependencyError(
psychopy.exceptions.DependencyError: gitpython and a git installation required for getProject()

I do get a saved file however. That file also opens but this produces new errors:

Traceback (most recent call last):
  File "C:\Users\leonb\anaconda3\envs\psychopy2\lib\site-packages\psychopy\app\builder\builder.py", line 735, in fileOpen
    self.project = pavlovia.getProject(filename)
  File "C:\Users\leonb\anaconda3\envs\psychopy2\lib\site-packages\psychopy\projects\pavlovia.py", line 1239, in getProject
    raise exceptions.DependencyError(
psychopy.exceptions.DependencyError: gitpython and a git installation required for getProject()