I am trying to create a source space, to calculate a forward model for a subject without an MRI. This requires that I use fsaverage. However, there seems to be a problem downloading the fsaverage files. The code is below, any pointers to how I could resolve this?
import mne
from mne.datasets import fetch_fsaverage
mne.datasets.fetch_fsaverage(subjects_dir=None,verbose=None)
(produces this error) URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)>
In an attempt to get your download to work on your existing installation, you could try running pip install -U certifi
If that doesn’t fix the issue, all I can suggest is to follow the installation docs linked to above.