Kernel dies importing spacy #7909
-
How to reproduce the behaviour
Your Environment
Importing spaCy library into Jupiter notebook within the above environment kills my kernel, with the package failing to import. Any help would be greatly appreciated, thanks for all your hard work! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
Sorry you're having trouble with that. We have had reports of issues with M1 chips, and in general Python and pip had trouble adjusting immediately after they were released, though at this point I think most people are able to use it without issue.
|
Beta Was this translation helpful? Give feedback.
-
I had the same issue before. |
Beta Was this translation helpful? Give feedback.
-
I also have this problem. How do I solve this? |
Beta Was this translation helpful? Give feedback.
-
I am encountering the same issue on a Jupyter server deployed as a HuggingFace Space. Tried the latest SpaCy version v3.5.3 as well as v3.5.0 Python version is v3.10 Running "!pip show spacy" in Jupyter works fine and produces the following output: |
Beta Was this translation helpful? Give feedback.
-
I'm having this same problem when I import spacy into an environment pre-loaded with top2vec. Previous spacy env working fine, top2vec env working fine before spacy install in that environment. Can't find a workaround except to switch environments for relevant work. Is there some way to find out what is causing this problem though, as I've followed the flow in answer above and spacy is updated, installed also via command line into the env but there's no problem with the install, just the dead kernel when the code hits the import spacy command in jupyter notebook |
Beta Was this translation helpful? Give feedback.
-
if i install it with conda, it works: |
Beta Was this translation helpful? Give feedback.
Sorry you're having trouble with that. We have had reports of issues with M1 chips, and in general Python and pip had trouble adjusting immediately after they were released, though at this point I think most people are able to use it without issue.