Following the advice here I easy_installed matplotlib using the following commands:
mkdir -p ~/bin ~/lib/python2.6
easy_install-2.6 matplotlib
After installation finished (with some warnings) I tried the following and received an error:
[username@webXXX mydjangoapp]$ python2.6
Python 2.6.5 (r265:79063, Nov 23 2010, 02:02:03)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/matplotlib/__init__.py:62: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5, os, re, shutil, sys, warnings
/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated
from sets import Set
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/matplotlib/pyplot.py", line 6, in <module>
from matplotlib.figure import Figure, figaspect
File "/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/matplotlib/figure.py", line 10, in <module>
from axes import Axes, Subplot, PolarSubplot, PolarAxes
File "/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/matplotlib/axes.py", line 6, in <module>
import matplotlib.numerix.npyma as ma
File "/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/matplotlib/numerix/__init__.py", line 166, in <module>
__import__('ma', g, l)
File "/home/username/lib/python2.6/matplotlib-0.91.1-py2.6-linux-i686.egg/matplotlib/numerix/ma/__init__.py", line 16, in <module>
from numpy.core.ma import *
ImportError: No module named ma
How can I resolve this?
UPDATE:
I tried to easy_install numpy - turns out it's already installed:
[username@webXXX ~]$ easy_install-2.6 numpy
Searching for numpy
Best match: numpy 1.2.1
Adding numpy 1.2.1 to easy-install.pth file
Using /usr/local/lib/python2.6/site-packages
Processing dependencies for numpy
Finished processing dependencies for numpy
I tried the import after this again and it failed again
asked
07 Feb '11, 12:11
Jonathan
28●1●8●13
accept rate:
0%