1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
.. include:: ../links.inc
.. _testing-installation:
Testing your installation
=========================
To make sure MNE-Python was installed correctly, type the following command in
a terminal::
python -c "import mne; mne.sys_info()"
.. hint::
If you installed MNE-Python using one of our installers, enter the above
command in the **Prompt**.
This should display some system information along with the versions of
MNE-Python and its dependencies. Typical output looks like this::
Platform: Linux-5.0.0-1031-gcp-x86_64-with-glibc2.2.5
Python: 3.8.1 (default, Dec 20 2019, 10:06:11) [GCC 7.4.0]
Executable: /home/travis/virtualenv/python3.8.1/bin/python
CPU: x86_64: 2 cores
Memory: 7.8 GB
mne: 0.21.dev0
numpy: 1.19.0.dev0+8dfaa4a {blas=openblas, lapack=openblas}
scipy: 1.5.0.dev0+f614064
matplotlib: 3.2.1 {backend=QtAgg}
sklearn: 0.22.2.post1
numba: 0.49.0
nibabel: 3.1.0
cupy: Not found
pandas: 1.0.3
dipy: 1.1.1
pyvista: 0.25.2 {pyvistaqt=0.1.0}
vtk: 9.0.0
qtpy: 2.0.1 {PySide6=6.2.4}
.. dropdown:: If you get an error...
:color: danger
:icon: alert-fill
.. rubric:: If you see an error like:
::
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'mne'
This suggests that your environment containing MNE-Python is not active.
If you followed the setup for 3D plotting/source analysis (i.e., you
installed to a new ``mne`` environment instead of the ``base`` environment)
try running ``conda activate mne`` first, and try again. If this works,
you might want to set your terminal to automatically activate the
``mne`` environment each time you open a terminal::
echo conda activate mne >> ~/.bashrc # for bash shells
echo conda activate mne >> ~/.zprofile # for zsh shells
If something else went wrong during installation and you can't figure it out,
check out the :ref:`advanced_setup` instructions to see if your problem is
discussed there. If not, the `MNE Forum`_ is a good resources for
troubleshooting installation problems.
.. highlight:: python
.. LINKS
.. _environment file: https://raw.githubusercontent.com/mne-tools/mne-python/main/environment.yml
.. _`pyvista`: https://docs.pyvista.org/
.. _`X server`: https://en.wikipedia.org/wiki/X_Window_System
.. _`xvfb`: https://en.wikipedia.org/wiki/Xvfb
|