kakao / n2

TOROS N2 - lightweight approximate Nearest Neighbor library which runs fast even with large datasets
Apache License 2.0
567 stars 71 forks source link

`Library not loaded: /usr/local/opt/gcc/lib/gcc/10/libgomp.1.dylib` #47

Open paw-lu opened 3 years ago

paw-lu commented 3 years ago

Having some trouble installing n2.

System: macOS Python: 3.9

❯ brew install 

❯ echo $CC
/usr/local/opt/gcc/bin/gcc-11

❯ echo $CXX
/usr/local/opt/gcc/bin/g++-11

❯ python -m pip instal n2

❯ python -c 'import n2'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: dlopen(/Users/pawlu/Documents/personal/img2bug/.venv/lib/python3.9/site-packages/n2.cpython-39-darwin.so, 2): Library not loaded: /usr/local/opt/gcc/lib/gcc/10/libgomp.1.dylib
  Referenced from: /Users/pawlu/Documents/personal/img2bug/.venv/lib/python3.9/site-packages/n2.cpython-39-darwin.so
  Reason: image not found
paw-lu commented 3 years ago

This seems to work out if I run python -m pip install n2 --no-binary n2.

Problem is I want to use this package as a downstream depedency.

Would it be possible to tag the binary as non-macOS?