简体   繁体   中英

Jupiter notebook kernel dies when importing spacy

I am currently trying to import spaCy version 3.0.6 in a Jupiter notebook with the following code:

import spacy

But my kernel dies and I get the following message:

在此处输入图像描述

I tried updating conda and anaconda with condo update conda and condo update anaconda , but the issue persists. I also tried updating h5py and ipykernel. I have also tried uninstalling and reinstalling spacy. These were some solutions I found online but the problem persists. I am running this on a macOS with M1 chip. Any help would be greatly appreciated!

I had the same issue before. I tried to create a conda Env, install spacy packages there and add it to my jupyter notebook. Then run the jupyter notebook in that new conda Env then it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM