Some additional steps beyond the standard installation instructions may be required for certain Mac OS systems.
The steps detailed in this document have been tested for Mac OS 10.13.3.
The following packages are required in order to build PySAP:
gcc
Or any c/c++ compiler that supports OpenMP. (Note that the native Mac
OS clang
does not)
cmake
The above listed requirements can be readily installed on Mac OS using Homebrew.
$ brew install gcc cmake
Note that the commands gcc
and g++
default to clang
. Before
installing PySAP you should export the environment variables CC
and CXX
.
e.g.
$ export CC="/usr/local/bin/gcc-7"
$ export CXX="/usr/local/bin/g++-7"
The following subsections propose solutions to some known issues.
Some issues may arise with regards to the installation of pyqtgraph
. The
easiest solution to this problem is to install the package using Anaconda.
$ conda install pyqtgraph
Alternatively see the PyQtGraph homepage for help.
If you see the following error or something similar
**RuntimeError**: Python is not installed as a framework...
simply create a matplotlibrc
file and specify a backend.
e.g.
echo "backend: Agg" >> ~/.matplotlib/matplotlibrc