简体   繁体   English

Jupiter笔记本kernel进口spacy时死机

[英]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:我目前正在尝试使用以下代码在 Jupiter 笔记本中导入 spaCy 版本 3.0.6:

import spacy

But my kernel dies and I get the following message:但是我的 kernel 死了,我收到以下消息:

在此处输入图像描述

I tried updating conda and anaconda with condo update conda and condo update anaconda , but the issue persists.我尝试使用condo update conda conda 和condo update anaconda ,但问题仍然存在。 I also tried updating h5py and ipykernel.我还尝试更新 h5py 和 ipykernel。 I have also tried uninstalling and reinstalling spacy.我也试过卸载并重新安装 spacy。 These were some solutions I found online but the problem persists.这些是我在网上找到的一些解决方案,但问题仍然存在。 I am running this on a macOS with M1 chip.我在带有 M1 芯片的 macOS 上运行它。 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.我尝试创建一个 conda Env,在那里安装 spacy 包并将其添加到我的 jupyter 笔记本中。 Then run the jupyter notebook in that new conda Env then it works.然后在那个新的 conda Env 中运行 jupyter notebook 然后它就可以工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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