0

How do I import the nibabel module in Jupyter notebook on MacOS?

I already installed nibabel on my Macbook using PIP, but the jupyter notebook still gives

ModuleNotFoundError: No module named 'nibabel'
Annemijn
  • 1
  • 1
  • If you are using Anaconda/conda, run `%conda install -c conda-forge nibabel` in a cell in your notebook where you want to use it. If you are just using pip everywhere then in a cell in the notebook where you want to use it, run `%pip install nibabel`. If you read up you'll understand where you installed nibabel originally isn't necessarily where your notebook is using packages. You could connect them properly as well. However, if you don't want to take the time now to do that and just get things working, using the magic commands in the notebook will help. – Wayne Dec 13 '22 at 18:03

0 Answers0