0

我正在尝试按照文档中的步骤为 jupyter 安装 C 内核。哪个是

> pip install jupyter-c-kernel
> install_c_kernel
> jupyter-notebook

第二步出现以下错误:

Traceback (most recent call last):
  File "/usr/local/bin/install_c_kernel", line 8, in <module>
    from jupyter_client.kernelspec import KernelSpecManager
ModuleNotFoundError: No module named 'jupyter_client.kernelspec'

显然它没有识别模块,我不知道如何修复它。有人可以帮助我吗?

4

1 回答 1

0

install_c_kernel --user是对我有用的命令,建议在此处用于存储库的 Github 问题: https ://github.com/brendan-rius/jupyter-c-kernel/issues/38

如果您仔细阅读问题,它也会显示为 bash,但是当您打开笔记本时,它会显示为 C。

如果您已经.ipynb打开了笔记本,您可以Kernel从菜单中进行选择,在底部它为您提供更改内核的选项。

于 2019-12-17T02:09:44.837 回答