Skip to content

Running from source: MacPorts

Paul Müller edited this page Dec 12, 2015 · 11 revisions

This article describes the installation on a Mac using MacPorts. For general installation instructions, see Installation.

PyCorrFit can be run using MacPorts.

  1. Install Python 2.7 using MacPorts

    `sudo port install python27` 
    
  2. Add Python 2.7 to the PATH variable.

    `nano .bash`     
    

    At the beginning of the file write:

    export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH

    This way MacPorts' Python will be used, when python is invoked. Load the new configuration.

    source .bash

  3. Set Python 2.7 as your standard Python distribution

    `sudo port select --list python`   
    `sudo port select --set python python27`   
    
  4. Install dependencies for PyCorrFit

    `sudo port install py27-matplotlib py27-numpy py27-scipy py27-sympy py27-yaml wxgtk-2.8 py27-wxpython-2.8`  
    
  5. Execute PyCorrFit

    python -m pycorrfit.

Off-topic:
If you need opencv, you would have to install it with sudo port install opencv +python27

Clone this wiki locally