pysaliency icon indicating copy to clipboard operation
pysaliency copied to clipboard

[Documentation] Getting pysaliency to work on OS X

Open evanmiltenburg opened this issue 7 years ago • 2 comments
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

evanmiltenburg avatar Dec 13 '17 16:12 evanmiltenburg

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)

kmcnaught avatar Dec 24 '17 13:12 kmcnaught

Solved in a similar way

sudo port install gcc7 env CC=/opt/local/bin/gcc-mp-7 pip install pysaliency

Gastonison avatar Jan 31 '19 18:01 Gastonison