How do I install mne on wsl2 in windows 11.

I have installed mne on wsl by installing miniconda and then following the linux installation instructions. My problem comes with visuaizations, I just don’t know how to set it up.

When I try to install the dependencies for a linux headless server:
conda install -c conda-forge "vtk>=9.2=*osmesa*" "mesalib=21.2.5"

I get this errors:


LibMambaUnsatisfiableError: Encountered problems while solving:
  - package xorg-libx11-1.8.9-hb711507_1 requires libxcb >=1.16,<1.17.0a0, but none of the providers can be installed

But are they even needed?
What is the correct procedure to use mne on wsl? I could not find any information about it.

sys_info()

Platform             Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python               3.12.5 | packaged by conda-forge | (main, Aug  8 2024, 18:36:51) [GCC 12.4.0]
Executable           /home/edoardo/miniconda3/envs/mne/bin/python
CPU                  x86_64 (8 cores)
Memory               7.6 GB

Core
β”œβ˜‘ mne               1.8.0 (latest release)
β”œβ˜‘ numpy             1.26.4 (OpenBLAS 0.3.27 with 8 threads)
β”œβ˜‘ scipy             1.14.1
β””β˜‘ matplotlib        3.9.2 (backend=module://matplotlib_inline.backend_inline)

Numerical (optional)
β”œβ˜‘ sklearn           1.5.1
β”œβ˜‘ numba             0.60.0
β”œβ˜‘ nibabel           5.2.1
β”œβ˜‘ nilearn           0.10.4
β”œβ˜‘ dipy              1.9.0
β”œβ˜‘ openmeeg          2.5.12
β”œβ˜‘ pandas            2.2.2
β”œβ˜‘ h5io              0.2.4
β”œβ˜‘ h5py              3.11.0
β””β˜ unavailable       cupy

Visualization (optional)
β”œβ˜‘ pyvista           0.44.1 (OpenGL 4.5 (Core Profile) Mesa 24.2.1 via llvmpipe (LLVM 18.1.8, 256 bits))
β”œβ˜‘ pyvistaqt         0.11.1
β”œβ˜‘ vtk               9.3.1
β”œβ˜‘ qtpy              2.4.1