VTK error when trying SEEG tutorial

Hi, I’m trying to run this scripthttps://mne.tools/stable/auto_tutorials/clinical/20_seeg.html?highlight=combine_transforms, and this is the error

ImportError: cannot import name 'vtkDiscreteFlyingEdges3D' from 'vtk' (C:\Users\barryliu\AppData\Roaming\Python\Python37\site-packages\vtk\__init__.py)

It seems that this is an error from mne.viz._brain._brain._marching_cubes

This is the info

Platform:       Windows-10-10.0.19041-SP0
Python:         3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:35:01) [MSC v.1916 64 bit (AMD64)]
Executable:     D:\ProgramData\Miniconda3\envs\env1\python.exe
CPU:            Intel64 Family 6 Model 158 Stepping 13, GenuineIntel: 16 cores
Memory:         63.9 GB
mne:            0.24.0
numpy:          1.21.4 {blas=D:\\a\\1\\s\\numpy\\build\\openblas_info, lapack=D:\\a\\1\\s\\numpy\\build\\openblas_lapack_info}
scipy:          1.7.2
matplotlib:     3.4.3 {backend=Qt5Agg}
sklearn:        1.0.1
numba:          Not found
nibabel:        3.2.1
nilearn:        Not found
dipy:           1.4.1
cupy:           Not found
pandas:         1.3.4
mayavi:         Not found
pyvista:        0.32.1 {OpenGL 4.5.0 NVIDIA 456.71 via GeForce RTX 2070 SUPER/PCIe/SSE2}
pyvistaqt:      0.5.0
ipyvtklink:     Not found
vtk:            8.1.2
PyQt5:          5.15.4
ipympl:         Not found
mne_qt_browser: 0.1.6

Hello,

your VTK version is outdated and it seems you installed MNE-Python in a non-standard way. Please follow our official installation instructions to get a working copy of MNE:

https://mne.tools/stable/install/mne_python.html#d-plotting-and-source-analysis

Best,
Richard

So Python 3.8 is recommended now in mne?

Hello @BarryLiu97,

we always recommend that whenever you want to update MNE, you actually perform a fresh installation as described in our installation instructions. This will ensure that everything works.

Best wishes,
Richard