0

I am trying to import numpy module in jupyter notebook but it is giving me error as --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in ----> 1 import numpy as np ModuleNotFoundError: No module named 'numpy'

I have numpy installed in my system as when I import the same in IDLE/Pycharm, it gets imported without any error and I am able to use it. I tried

import sys
sys.path.append('/users/user/appdata/local/programs/python/python38/lib/site-packages')
import numpy as np

but it is showing error as --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in ----> 1 import numpy as np ModuleNotFoundError: No module named 'numpy'

Arbaaz Ahmed
  • 29
  • 2
  • 3
  • Are you certain Jupyter is using the Python you think it is? – DejaVuSansMono Jun 05 '20 at 22:05
  • @DejaVuSansMono it's showing python 3 and thus am not certain that whether it's using 3.7 or 3.8 as I have both in my system and numpy is installed for 3.8. Will you please tell that how should I check /change my project interpreter in jupyter. – Arbaaz Ahmed Jun 06 '20 at 05:31
  • It's addressed pretty well here https://stackoverflow.com/questions/58645807/change-interpreter-in-jupyter-notebook I imagine that's the problem. – DejaVuSansMono Jun 08 '20 at 17:11
  • Does this answer your question? [Change Interpreter in Jupyter notebook](https://stackoverflow.com/questions/58645807/change-interpreter-in-jupyter-notebook) – AMC Jul 08 '20 at 21:22

0 Answers0