/admin

Download Scipy For Mac

Download Scipy For Mac Rating: 4,7/5 8671 votes

I just went through some pain (again) when I wanted to install some ofPython’s scientific libraries on my second Mac. I summarized the setupand installation process for future reference.
If you encounter any different or additional obstacles let me know, andplease feel free to make any suggestions to improve this shortwalkthrough.

Available packages. Download location. Official source code (all platforms) and binaries for Windows, Linux and Mac OS X. PyPI page for NumPy. Official source code (all platforms) and binaries for Windows, Linux and Mac OS X. SciPy release page (sources). PyPI page for SciPy (all).

Sections

  • Installing SciPy
  • Installing IPython

Anaconda and Miniconda

Alternatively, instead of going through all the manual steps listed inthe following sections, there is the Anaconda Pythondistribution for scientificcomputing. Although Anaconda is distributed by Continuum Analytics, itis completely free and includes more than 125 packages for science anddata analysis.The installation procedure is nicely summarized here:http://docs.continuum.io/anaconda/install.html

If this is too much, theMiniconda might be right for you.Miniconda is basically just a Python distribution with the Conda packagemanager, which let’s us install a list of Python packages into aspecified conda environment.

Note: environments will be created in ROOT_DIR/envs by default, youcan use the -p instead of the -n flag in the conda commands above inorder to specify a custom path.

If you we decided pro Anaconda or Miniconda, we are basically done atthis point. The following sections are explaining a more (semi)-manualapproach to install the packages individually using pip.

Consider a virtual environment

In order to not mess around with our system packages, we shouldconsider setting up a virtual environment when we want to install theadditional scientific packages.
To set up a new virtual environment, we can use the following command

and activate it via

Installing pip

pip is a tool for installing and managing Python packages. It makesthe installation process for Python packages a lot easier, since theydon’t have to be downloaded manually.
If you haven’t installed the pip package for your version of Python,yet, I’d suggest to download it from https://pypi.python.org/pypi/pip,unzip it, and install it from the unzipped directory via

Installing NumPy

Installing NumPy should be straight forward now using pip

The installation will probably take a few minutes due to the sourcefiles that have to be compiled for your machine. Once it is installed,NumPy should be available in Python via

If you want to see a few examples of how to operate with NumPy arrays,you can check out my Matrix Cheatsheet for Moving from MATLAB matricesto NumPyarrays

Installing SciPy

While the clang compiler worked fine for compiling the C source codefor numpy, we now need an additional Fortran compiler in order toinstall scipy.

Installing a Fortran Compiler

Unfortunately, MacOS 10.9 Mavericks doesn’t come with a Fortrancompiler, but it is pretty easy to download and install one.
For example, gfortran for MacOS 10.9 can be downloaded fromhttp://coudert.name/software/gfortran-4.8.2-Mavericks.dmg

Just double-click on the downloaded .DMG container and follow thefamiliar MacOS X installation procedure. Once it is installed, thegfortran compiler should be available from the command line,. We cantest it by typing

Among other information, we will see the current version, e.g.,

Installing SciPy

Now, we should be good to go to install SciPy using pip.

After it was successfully installed - might also take a couple ofminutes due to the source code compilation - it should be available inPython via

Most themes designed for GTK 2.x and GTK 3.x will work with MATE. Head over the MATE-Look to see what you can find. GTK 2.x themes; GTK 3.x themes. MATE Panel Themes This is a collection of premium skins for the MATE Panel and MATE Menu. It can be used in desktop environments other than MATE, but the most compatible panel layout is the traditional style of two 24px height panels on the top and bottom; alternatively there are 40px height panel images for the single panel layout. Best mate themes 2019.

Installing matplotlib

The installation process for matplotlib should go very smoothly usingpip, I haven’t encountered any hurdles here.

After successful installation, it can be imported in Python via

The matplotlib library has become my favorite data plotting toolrecently, you can check out some examples in my littlematplotlib-gallery on GitHub:https://github.com/rasbt/matplotlib_gallery

Installing IPython

Installing pyzmq

The IPython kernel requires the pyzmq package to run, pyzmq containsPython bindings for ØMQ, which is a lightweight and fast messagingimplementation. It can be installed via pip.

Installing pyside

When I was trying to install the pyside package, I had it complainingabout the missing cmake. It can be downloaded from:

Just as we did with gfortran in the Installing SciPysection, double-click on the downloaded .DMG container andfollow the familiar MacOS X installation procedure.We can confirm that it was successfully installed by typing

into the command line where it would print something like

Installing IPython

Now, we should finally be able to install IPython with all its furtherdependencies (pygments, Sphinx, jinja2, docutils, markupsafe) via

By doing this, we would install IPython to a custom location, e.g.,/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/IPython.

You can find the path to this location by importing IPython in Pythonand then print its path:

Finally, we can set an alias in our .bash_profile or .bash_rc fileto conviniently run IPython from the console. E.g.,

(Don’t forget to source the .bash_rc or .bash_profile fileafterwards)

Now we can run

from you shell terminal to launch the interactive IPython shell, and Altdvb 2.2 full.

to bring up the awesome IPython notebook in our browser, respectively.

Updating installed packages

Finally, if we want to keep our freshly installed packages up to date,we’d run pip with the --upgrade flag, for example