I have downloaded and installed anaconda. But when I run jupyter notebook and import matplotlib , it doesn't work. Below are some commands
which -a python
/home/user/anaconda3/bin/python
/usr/bin/python
which -a jupyter
/home/user/anaconda3/bin/jupyter
I run the notebook as follows
jupyter notebook
I get the below error
ImportError Traceback (most recent call last)
<ipython-input-1-fe07c3ebfee7> in <module>()
2 # before proceeding further.
3 from __future__ import print_function
----> 4 import matplotlib.pyplot as plt
5 import numpy as np
6 import os
ImportError: No module named 'matplotlib'
Note when I run python through terminal I can import matplotlib , the problem only persist in the browser of ipython notebook after running jupyter.
sys.pathshow for the terminal, and the notebook? - Abstractedconda install matpllotlib. - Han Zhengzu