Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with install on Mac OS X #1

Open
slimtomatillo opened this issue Sep 25, 2018 · 2 comments
Open

Issue with install on Mac OS X #1

slimtomatillo opened this issue Sep 25, 2018 · 2 comments

Comments

@slimtomatillo
Copy link

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
Copy link
Owner

permfl commented Sep 26, 2018

Do you have OpenMP installed?

@slimtomatillo
Copy link
Author

slimtomatillo commented Sep 26, 2018

I do not, is it necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants