These instructions describe how to build NumPy and SciPy libraries fromsource.
If you just want to use NumPy or SciPy, install pre-built binaries as describedin /install.
Sep 04, 2012. Mac OS 9 9.2. Mac OS 9.x, based on Mac OS 8 was the final product based on the classic MacOS architecture. Like previous version, it lacks true protected memory or pre-emptive multitasking. MacOS 9 was abandoned in favor of of the Unix-ish NextStep/Openstep based Mac OS X. Running MacOS 9 requires a supported Power PC based Macintosh (see the compatibility matrix), or the following. So if your software is vecLib-aware, you may not need to install LAPACK at all. If you need to install a separate LAPACK, it's now available as a Homebrew formula in Homebrew core. So brew install lapack will work now. The Homebrew lapack formula currently includes a pre-built binary 'bottle' for OS X 10.11, so the installation should be easy.
Python¶
Apple ships its own version of Python with OS X. However, westrongly recommend installing the official Python distribution.
Alternatively, use Python from one of the OS X package managers(Homebrew, MacPorts, Fink).
Compilers (C/C++/FORTRAN/Cython)¶
Though virtually any commercial C/C++ compiler may be used with SciPy, OS Xcomes with GNU C compilers pre-installed. The only thing missing is the GNUFORTRAN compiler.
We recommend gfortran; this is a free, open source, F95 compiler. We suggest youuse the following binaries:
- gfortran installed via Homebrew, or,
- http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg (for Xcode4.2 or higher)
Lapack Download Windows
See this site for the most recent links.
Unless you are building from released source packages, the Cython compiler is also needed.
BLAS/LAPACK Installation¶
You will also need to install a library providing the BLAS and LAPACKinterfaces. ATLAS, OpenBLAS, and MKL all work. OpenBLAS can be installedvia Homebrew.
As of Scipy version 1.2.0, we do not support compiling against the systemAccelerate library for BLAS and LAPACK. It does not support a sufficientlyrecent LAPACK interface.
Version-specific notes¶
This section notes only things specific to one version of OS X or Python.The build instructions in Obtaining and Building NumPy and SciPy apply to all versions.
Obtaining and Building NumPy and SciPy¶
Mac app store pc download. You may install NumPy and SciPy either by checking out the sourcefiles from the Git repositories, or unpacking them from a sourcearchive file from /scipylib/download. If you choose the latter,simply expand the archive (generally a gzipped tar file), otherwisecheck out the following branches from the repository:
Both NumPy and SciPy are built as follows:
The above applies to the official Python distribution, which is 32-bitonly for 2.6 while 32/64-bit bundles are available for 2.7 and3.x. For alternative 64-bit Pythons (either from Apple or home-built)on Snow Leopard, you may need to extend your build flags to specifythe architecture by setting LDFLAGS and FFLAGS.
Note that with distutils (setup.py) given build flags like LDFLAGSdo not extend but override the defaults, so you have to specifyall necessary flags. Only try this if you know what you’re doing!
After a successful build, you may try running the built-in unit testsfor SciPy:
Be sure not to import numpy or scipy while you’re in the numpy/scipysource tree. Change directory first.
If you have any problems installing SciPy on your Macbased on these instructions, please check the scipy-users andscipy-dev mailing list archives for possible solutions. If youare still stuck, feel free to join scipy-users for furtherassistance. Aplikasi download manager di mac. Please have the following information ready:
- Your OS version
- The versions of gcc and gfortran and where you obtained gfortran
$gcc--version$gfortran--version
- The versions of numpy and scipy that you are trying to install
- The full output of
$pythonsetup.pybuild
Today, I’ve installed two popular packages:
- LAPACK, see http://www.netlib.org/lapack/
- BLAS, see http://www.netlib.org/blas/
Both packages are required when you deal with linear algebra operations, e.g. solving linear equation systems. Originally, both packages were written in FORTRAN, but I want to use them coding in C++. The solution is to create a libraray! There’re a few steps to consider while installing the packages. First, you have to install BLAS, because LAPACK requires it. If you have downloaded both packages, unzip them. Switch to the BLAS folder and execute
to compile all fortran files. After that, execute
to rename the created library. Now, you created a library called “libblas.a”. You just copy that file to your library folder. Therefore execute the following command
Et voila. You’ve installed the BLAS package. Now switch to the LAPACK folder and adjust the file “make.inc”. If you set all parameter correctly, execute the command
Now, you created a library e.g. called “lapack_MACOS.a”. Copy that file to your library folder by executing
Congratulation, you’ve installed BLAS and LAPACK on Mac OS!
Lapack For Windows
Note: I’ve installed BLAS and LAPACK operating on Mac OS 10.8.x!