generated from scikit-learn-contrib/project-template
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I tried installing vectorizers on a fresh pyenv and I got this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "vectorizers-master/vectorizers/__init__.py", line 1, in <module>
from .token_cooccurrence_vectorizer import TokenCooccurrenceVectorizer
File "vectorizers/token_cooccurrence_vectorizer.py", line 1, in <module>
from .ngram_vectorizer import ngrams_of
File "vectorizers/ngram_vectorizer.py", line 2, in <module>
import numba
File "numba-0.54.1-py3.9-macosx-11.3-x86_64.egg/numba/__init__.py", line 19, in <module>
from numba.core import config
File "numba-0.54.1-py3.9-macosx-11.3-x86_64.egg/numba/core/config.py", line 16, in <module>
import llvmlite.binding as ll
File "llvmlite-0.37.0-py3.9.egg/llvmlite/binding/__init__.py", line 4, in <module>
from .dylib import *
File "llvmlite-0.37.0-py3.9.egg/llvmlite/binding/dylib.py", line 3, in <module>
from llvmlite.binding import ffi
File "llvmlite-0.37.0-py3.9.egg/llvmlite/binding/ffi.py", line 191, in <module>
raise OSError("Could not load shared object file: {}".format(_lib_name))
OSError: Could not load shared object file: libllvmlite.dylib
This was resolvable for me by uninstalling and reinstalling libllvmlite & numba after ensuring numpy<1.21, e.g.
pip install numpy==1.20
pip uninstall libllvmlite
pip uninstall numba
pip install libllvmlite
pip install numba
This is obviously not a big deal, but in case others bump this, maybe a ref in the README can save them a google. 🤷
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels