Matplotlib: Difference between revisions

imported>Jesstess
imported>Jesstess
Line 28:
==== Mac OS X users only ====
 
Getting matplotlib installed on OS X is unfortunately convoluted. Please wave over a staff member and we'll help you through the installation process that makes the most sense for your computing environment.
If you do not already have a C compiler installed, you'll need to install one before you install matplotlib. You have several options depending on your situation:
# Download and install Xcode (1.5 GB) from https://developer.apple.com/xcode/
# Download and install Command Line Tools for Xcode (175 MB) from https://developer.apple.com/downloads/index.action. This requires an Apple Developer account (free, but you have to sign up).
# Download and install kennethreitz's gcc installer (requires OS X 10.6 or 10.7) from https://github.com/kennethreitz/osx-gcc-installer/
 
<b>Option 1: install binaries</b><br/>
Please wave over a staff member and we'll help you pick which option is best for you computer.
# Follow the instructions at http://penandpants.com/2012/03/01/install-python-2/, which will walk you through installing a new Python, NumPy, SciPy, and finally matplotlib.
* Pros: you don't have to compile from source. Cons: you have to install a new Python, which could possibly interact negatively with existing libraries.
 
<b>Option 2: install from source</b>
# If you do not already have a C compiler installed, you'll need to install one before you install matplotlib. You have several options depending on your situation (ask a staff member for help picking one):
#* Download and install Xcode (1.5 GB) from https://developer.apple.com/xcode/
#* Download and install Command Line Tools for Xcode (175 MB) from https://developer.apple.com/downloads/index.action. This requires an Apple Developer account (free, but you have to sign up).
#* Download and install kennethreitz's gcc installer (requires OS X 10.6 or 10.7) from https://github.com/kennethreitz/osx-gcc-installer/
# Unpack the latest matplotlib tarball from http://sourceforge.net/projects/matplotlib/files/matplotlib/
# Follow the instructions in <code>README.osx</code>
* Pros: you get to use your existing Python installation. Cons: you have to install a C compiler and compile from source.
 
<!--
Anonymous user