[SciPy-user] fortran compiler not found Mac Leopard 10.5

Brian Granger ellisonbg.net@gmail....
Mon Nov 12 22:59:08 CST 2007


Great, now you are ready for the other problem on Leopard:

sudo does not preserve the PYTHONPATH environment variable.

Thus anytime you do::

sudo python setup.py install

to install something else, your version of numpy won't be used!  This
has been reported to apple and the problem can be fixed by adding
PYTHONPATH to the appropriate section in /etc/sudoers.

Another option (see the recent thread on pythonmax-sig) is to create a
.pth file that dynamically reorders the sys.path.  This approach is
nice as it doesn't require setting PYTHONPATH.

You will run into this when installing matplotlib and pytables...if
you go that way.

Brian

On Nov 12, 2007 2:51 PM, Jeremy Conlin <jeremit0@gmail.com> wrote:
> On Nov 12, 2007 4:02 PM, Steve Lianoglou <lists.steve@arachnedesign.net> wrote:
> > > I am using the builtin python.  I did build numpy myself from svn, but
> > > it looks like python is using builtin version.  How can I make it use
> > > my compiled version instead?
> > >
> > > I will take a look at the pythonmac-sig email list and see what is
> > > known about scipy on Leopard.
> >
> > If I remember correctly, you have to setup your PYTHONPATH envi var to
> > include the libraries in /Library/Python/2.5/site-packages before the
> > ones that are installed into the system path (which I think are buried
> > somewhere in /System/Library/Frameworks/Python.framework/...).
> >
> > (The normal `python setup.py install` command will drop then into  /
> > Library/Python/2.5/site-packages)
>
> I got numpy and scipy to install and they both passed all the tests.
> This is how I did it.
>
> I followed the instructions on scipy.org for installing on Mac OS X.
> I used the fortran compiler from att.com site.  I set my PYTHONPATH
> as:
>
> export PYTHONPATH="/Library/Python/2.5/site-packages:$PYTHONPATH"
>
> Everything compiled without any problems.  Thanks for everyone's
> suggestions.  I hope my results will help others.
>
> Jeremy
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-user mailing list