permfl / dictlearn

Dictionary Learning for image processing
http://dictlearn.readthedocs.io/
33 stars 11 forks source link

Issue with install on Mac OS X #1

Open slimtomatillo opened 6 years ago

slimtomatillo commented 6 years ago

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.

permfl commented 6 years ago

Do you have OpenMP installed?

slimtomatillo commented 6 years ago

I do not, is it necessary?