[Numpy-discussion] Numpy compilation error

Pradeep Jha jhapk@utias.utoronto...
Thu Apr 29 15:23:39 CDT 2010


Hi,

I have a few questions:

1)
I downloaded numpy1.3.0 and installed it in a directory using the command
*python setup.py install --prefix=$HOME/src/numpy
*and I see that numpy files have been generated in that directory.

Now when I tried to install matplotlib, it complained that my numpy version
is 1.0.3. When I go in python mode on command line I get the following
output:
*[pradeep@scaramanga ~]$python
Python 2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> print numpy.__version__
1.0.3
*
2)
I donwloaded Scipy.0.7.2 from http://sourceforge.net/projects/scipy/files/
I installed it using
*python setup.py install --prefix=$HOME/src/scipy
*
Again when I goto command line python, I get the following output

*[pradeep@scaramanga ~]$python
Python 2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
/usr/lib/python2.4/site-packages/scipy/misc/__init__.py:25:
DeprecationWarning: ScipyTest is now called NumpyTest; please update your
code
  test = ScipyTest().test
*
Why isn't my python reading things from the newer installed versions?

Thanks
PRadeep


2010/4/21 David Cournapeau <cournape@gmail.com>

> On Thu, Apr 22, 2010 at 2:23 AM, Christopher Barker
> <Chris.Barker@noaa.gov> wrote:
>
> > I hadn't read the thread carefully enough to realize that the OP was
> > asking about a non-root install, but in any case, I'd still encourage
> > that folks set ONE standard place in their PYTHONPATH, rather than one
> > for each package, and make sure you're careful about running more than
> > one version of Python.
>
> The beauty of --user is that you don't need PYTHONPATH, and it is
> interpreter specific (at least if the package is correctly done).
> PYTHONPATH is becoming a pain with python 3.*
>
> cheers,
>
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100429/fe0b6740/attachment.html 


More information about the NumPy-Discussion mailing list