[SciPy-User] Installing Scipy 0.11.0 on a MacBook Pro Running Mac OS x 7.5

Ralf Gommers ralf.gommers@gmail....
Fri Jan 18 18:41:29 CST 2013


On Thu, Jan 17, 2013 at 2:41 AM, Aquil H. Abdullah <aquil.abdullah@gmail.com
> wrote:

> Hello All,
>
> I've recently tried to install SciPy on my Mac Book Pro
>
> *Processor*  2.5 GHz Intel Core i7
>
> *Memory*  8 GB 1333 MHz DDR3
>
> *Software*  Mac OS X Lion 10.7.5 (11G63b)
>
> XCode: Version 4.5.2 (4G2008a)  [NOTE: Previously, this was Version: 4.2.1]
>
>
> I've successfully installed NumPy, using the following commands:
>
> export CC=gcc-4.2
>
> export CXX=g++-4.2
>
> export FFLAGS=-ff2c
>
> git clone https://github.com/scipy/scipy.git
>
> cd scipy
>
> python setup.py build
>
> sudo setup.py install
>
> No matter what options I try, I cannot get Scipy to compile the FAT
> binaries that contain both the i386 image and the x86_64 image. So when I
> try to import scipy.stats, I get the following error:
>

You should get i386 and x86_64 by default. Can you put up the full build
log somewhere?

Ralf


> I tried the same commands on another computer in my office and everything
> built fine, and I am able to run scipy. If I look at the dynamic libraries
> in that version of scipy I see the following:
>
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
> darwin
>
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import scipy.stats
>
> Traceback (most recent call last):
>
>   File "<stdin>", line 1, in <module>
>
>   File "/Library/Python/2.7/site-packages/scipy/stats/__init__.py", line
> 321, in <module>
>
>     from stats import *
>
>   File "/Library/Python/2.7/site-packages/scipy/stats/stats.py", line 193,
> in <module>
>
>     import scipy.special as special
>
>   File "/Library/Python/2.7/site-packages/scipy/special/__init__.py", line
> 525, in <module>
>
>     from _cephes import *
>
> ImportError:
> dlopen(/Library/Python/2.7/site-packages/scipy/special/_cephes.so, 2): no
> suitable image found.  Did find:
>
> /Library/Python/2.7/site-packages/scipy/special/_cephes.so: mach-o, but
> wrong architecture
>
>
> Any suggestions?
>
>
> OTHER DETAILS
>
> *GCC VERSION*
>
> > gcc-4.2 --version
>
> i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> This is free software; see the source for copying conditions.  There is NO
>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> *G++ VERSION*
>
> > g++-4.2 --version
>
> i686-apple-darwin11-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> This is free software; see the source for copying conditions.  There is NO
>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> *GFORTRAN VERSION*
>
> > gfortran --version
>
> GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>
> Copyright (C) 2007 Free Software Foundation, Inc.
>
>
> --
> Aquil H. Abdullah
> aquil.abdullah@gmail.com
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20130119/114513ea/attachment.html 


More information about the SciPy-User mailing list