Connect your moderator Slack workspace to receive post notifications:
Sign in with Slack

Numpy import in jupyter notebook

Hello,

I trying to run the 'DataScience' notebook but I met issues with numpy. Indeed the first code cell tells me that ModuleNotFoundError: No module named 'numpy'.

  • I Tried to import and use numpy in a python3 instance in my terminal and everything worked well.
  • I run in the cell, before the import, the following code : !python3 -m pip install numpy (answered by Requirement already satisfied: numpy in /usr/local/lib/python3.9/site-packages (1.20.1))
  • I uninstalled and reinstalled numpy with python3 -m pip uninstall numpy

I still have the same error. Has anyone some idea about how to resolve it ? Thanks a lot !

Top comment

I resolved it by installing Jupyter Notebook with pip rather that with Homebrew.

Page 1 of 1

Add comment

Post as Anonymous Dont send out notification