>You might (and probably should) have installed both numpy and matplotlib >from Synaptic or using the apt-get command, simply because these packages >were put in the repositories for that purpose and ready to install without >compatibility issues and minimum hassle.
This statement by Fausto is correct. I am not an expert. The problem was that I needed the matplotlib last version, and for a reason that I forgot, I started doing the same procedure for fipy instead of using apt-get command. Also, I would like to keep the packages updated. According to Daniel suggestion, I got the following: $ python -c "import numpy.core.numeric as NX; print NX" <module 'numpy.core.numeric' from '/usr/local/lib/python2.7/dist-packages/numpy/core/numeric.pyc'> Lucia On Wed, Feb 8, 2012 at 12:46 PM, Daniel Wheeler <[email protected]> wrote: > On Wed, Feb 8, 2012 at 10:17 AM, Lucia AvOlocc <[email protected]> > wrote: >> >> Hi, >> I installed numpy and pysparse from source: >> >> $ python -c "import numpy; print numpy.__version__" >> 1.6.1 >> $ python -c "import pysparse; print pysparse.__version__" >> 1.2-dev224 >> $ python -c "import PyTrilinos; print PyTrilinos.version()" >> Traceback (most recent call last): >> File "<string>", line 1, in <module> >> ImportError: No module named PyTrilinos >> >> I do not install PyTrilinos because I am not running in parallel. > > > Exactly. You don't need it. Everything looks good as far as version numbers. > >> >> >>> import matplotlib >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> ImportError: No module named matplotlib >> >>> > > > Let's put matplotlib to the side for now. I want to figure out why the > "python setup.py install" of fipy is not working. To be clear, when you try > to install fipy you get > > $ sudo python setup.py install > ... > > line 11, in <module> > import numpy.core.numeric as NX > AttributeError: 'module' object has no attribute 'core' > > What happens when you do the following > > $ python -c "import numpy.core.numeric as NX; print NX" > > -- > Daniel Wheeler _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
