maciejkula / glove-python

Toy Python implementation of http://www-nlp.stanford.edu/projects/glove/
Apache License 2.0
1.25k stars 319 forks source link

import error on OSX #112

Open Loop-Xuhuan opened 4 years ago

Loop-Xuhuan commented 4 years ago

successfully installed but failed to import errors as below: Traceback (most recent call last): File "/Users/xuhuan/PycharmProjects/MachineLearning/Python Basics/tmp.py", line 1, in from glove import glove File "/Users/xuhuan/opt/anaconda3/lib/python3.6/site-packages/glove/init.py", line 2, in from .glove import Glove File "/Users/xuhuan/opt/anaconda3/lib/python3.6/site-packages/glove/glove.py", line 16, in from .glove_cython import fit_vectors, transform_paragraph ImportError: dlopen(/Users/xuhuan/opt/anaconda3/lib/python3.6/site-packages/glove/glove_cython.cpython-36m-darwin.so, 2): Symbol not found: _GOMP_loop_nonmonotonic_dynamic_next Referenced from: /Users/xuhuan/opt/anaconda3/lib/python3.6/site-packages/glove/glove_cython.cpython-36m-darwin.so Expected in: flat namespace in /Users/xuhuan/opt/anaconda3/lib/python3.6/site-packages/glove/glove_cython.cpython-36m-darwin.so