I am currently practicing matplotlib. This is the first example that I practice.
When I run this script with python ./plot_test.py , it shows the graph correctly. However, I run it on my own, ./plot_test.py , it produces the following:
Traceback (most recent call last): File "./plot_test.py", line 3, in <module> import matplotlib.pyplot as plt ImportError: No module named matplotlib.pyplot
Do python look at matplotlib in different places?
Wednesday:
Mac OS X 10.8.4 64bit built-in python 2.7
numpy, scipy, matplotlib is installed using:
sudo port install py27-numpy py27-scipy py27-matplotlib \ py27-ipython +notebook py27-pandas py27-sympy py27-nose
python matplotlib
songsong Aug 11 '13 at 20:54 on 2013-08-11 20:54
source share