-
-
Notifications
You must be signed in to change notification settings - Fork 14
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.
-
Install Python 2.7 using MacPorts
`sudo port install python27`
-
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
-
Set Python 2.7 as your standard Python distribution
`sudo port select --list python` `sudo port select --set python python27`
-
Install dependencies for PyCorrFit
`sudo port install py27-matplotlib py27-numpy py27-scipy py27-sympy py27-yaml wxgtk-2.8 py27-wxpython-2.8`
-
Execute PyCorrFit
python -m pycorrfit
.
Off-topic:
If you need opencv, you would have to install it with sudo port install opencv +python27