I have looked at other articles, but I have not been able to correct this. I am fairly new to Python. My problem:
import matplotlib.pyplot
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-64-6f467123fe04> in <module>()
----> 1 import matplotlib.pyplot
ImportError: No module named pyplot
---------------------------------------------------------------------------
Some more info: I am running Jupyter Notebook on OSX, but when I load Python from Terminal I also receive the same error.
which -a python
/Users/user/anaconda/bin/python
/usr/bin/python
which -a jupyter
/Users/user/anaconda/bin/jupyter
/usr/local/bin/jupyter
sys.path
['',
'/Users/user/anaconda/lib/python27.zip',
'/Users/user/anaconda/lib/python2.7',
'/Users/user/anaconda/lib/python2.7/plat-darwin',
'/Users/user/anaconda/lib/python2.7/plat-mac',
'/Users/user/anaconda/lib/python2.7/plat-mac/lib-scriptpackages',
'/Users/user/anaconda/lib/python2.7/lib-tk',
'/Users/user/anaconda/lib/python2.7/lib-old',
'/Users/user/anaconda/lib/python2.7/lib-dynload',
'/Users/user/anaconda/lib/python2.7/site-packages/runipy-0.1.1-py2.7.egg',
'/Users/user/anaconda/lib/python2.7/site-packages/setuptools-20.7.0-py2.7.egg',
'/Users/user/anaconda/lib/python2.7/site-packages',
'/Users/user/anaconda/lib/python2.7/site-packages/PIL',
'/Users/user/anaconda/lib/python2.7/site-packages/Sphinx-1.2.3-py2.7.egg',
'/Users/user/anaconda/lib/python2.7/site-packages/IPython/extensions',
'/Users/user/.ipython']