pysaliency
pysaliency copied to clipboard
[Documentation] Getting pysaliency to work on OS X
trafficstars
I couldn't get this to work on OS X (clang: error: unsupported option '-fopenmp'), until I installed a new version of gcc. Here's what worked for me:
sudo port install gcc7
sudo port select --set gcc mp-gcc7
python setup.py install
A homebrew version of the above fix is:
brew install gcc
CC=gcc-7 python setup.py install
(note that on recent versions of OSX, you already have /usr/bin/gcc, but this actually uses clang in the background, which is why you need to install gcc proper via homebrew or macports)
Solved in a similar way
sudo port install gcc7 env CC=/opt/local/bin/gcc-mp-7 pip install pysaliency