Failed to import spacy in jupyter notebook #12138
Unanswered
dansvotrecoeur
asked this question in
Help: Installation
Replies: 1 comment
-
It looks like the installed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got error 'ImportError: blis.cy does not export expected C function sgemm' when I tried to run import spacy in Jupyter Notebook.
May anyone can help to resolve this problem?
Thank you.
Here is the error code:
ImportError Traceback (most recent call last)
Input In [5], in <cell line: 1>()
----> 1 import spacy
File ~\anaconda3\lib\site-packages\spacy_init_.py:11, in
8 setup_default_warnings() # noqa: E402
10 # These are imported as part of the API
---> 11 from thinc.api import prefer_gpu, require_gpu, require_cpu # noqa: F401
12 from thinc.api import Config
14 from . import pipeline # noqa: F401
File ~\anaconda3\lib\site-packages\thinc\api.py:2, in
1 from .config import Config, registry, ConfigValidationError
----> 2 from .initializers import normal_init, uniform_init, glorot_uniform_init, zero_init
3 from .initializers import configure_normal_init
4 from .loss import CategoricalCrossentropy, L2Distance, CosineDistance
File ~\anaconda3\lib\site-packages\thinc\initializers.py:4, in
1 from typing import Callable, cast
2 import numpy
----> 4 from .backends import Ops
5 from .config import registry
6 from .types import FloatsXd, Shape
File ~\anaconda3\lib\site-packages\thinc\backends_init_.py:7, in
4 from contextvars import ContextVar
5 import threading
----> 7 from .ops import Ops
8 from .cupy_ops import CupyOps
9 from .numpy_ops import NumpyOps
File ~\anaconda3\lib\site-packages\thinc\backends\ops.py:16, in
13 from ..types import DeviceTypes, Generator, Padded, Batchable, SizedGenerator
14 from ..util import get_array_module, is_xp_array, to_numpy
---> 16 from .cblas import CBlas
18 ArrayT = TypeVar("ArrayT", bound=ArrayXd)
19 FloatsT = TypeVar("FloatsT", bound=_Floats)
File ~\anaconda3\lib\site-packages\thinc\backends\cblas.pyx:1, in init thinc.backends.cblas()
ImportError: blis.cy does not export expected C function sgemm
Beta Was this translation helpful? Give feedback.
All reactions