dictlearn icon indicating copy to clipboard operation
dictlearn copied to clipboard

Issue with install on Mac OS X

Open slimtomatillo opened this issue 7 years ago • 2 comments

I tried to install the module via the two lines of code below:

$ pip install -r requirements.txt
$ python setup.py install

but got the following error after the second line (running setup.py install):

... creating build/temp.macosx-10.7-x86_64-3.6/Users/alexandrasmith/Documents/Socos_Labs/Diabetes/Modeling/dictlearn/dictlearn/_dictlearn gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/anaconda3/include -arch x86_64 -I/Applications/anaconda3/include -arch x86_64 -Idictlearn/_dictlearn -I/Applications/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Applications/anaconda3/include/python3.6m -c /Users/alexandrasmith/Documents/Socos_Labs/Diabetes/Modeling/dictlearn/dictlearn/_dictlearn/_dictlearn.c -o build/temp.macosx-10.7-x86_64-3.6/Users/alexandrasmith/Documents/Socos_Labs/Diabetes/Modeling/dictlearn/dictlearn/_dictlearn/_dictlearn.o -fopenmp -O3 clang: error: unsupported option '-fopenmp' error: command 'gcc' failed with exit status 1

Any suggestions? I am looking to find a module or open-sourced implementation of a sparse dictionary learning algorithm, and yours looks great--I'd love use it.

slimtomatillo avatar Sep 25 '18 19:09 slimtomatillo

Do you have OpenMP installed?

permfl avatar Sep 26 '18 07:09 permfl

I do not, is it necessary?

slimtomatillo avatar Sep 26 '18 17:09 slimtomatillo