在jupy中添加内核

2024-06-17 10:48:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我有python3内核,想把python2内核添加到我的Jupyter笔记本上。在

我用来添加python2的命令:

jupyter kernelspec install C:\Python27\

我得到:

^{pr2}$

但当我列出内核时:

Available kernels:
  python3    c:\users\usrer1\appdata\local\programs\python\python36-32\share\jupyter\kernels\python3

为什么python2内核没有添加到列表中?在


Tags: install命令笔记本jupyter内核userspython3available
1条回答
网友
1楼 · 发布于 2024-06-17 10:48:37

您可以在下面的链接中找到此消息。在

"This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7. If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release)."

https://ipython.readthedocs.io/en/latest/install/kernel_install.html

这是5.x文档的链接。。。在

http://ipython.readthedocs.io/en/5.x/install/kernel_install.html#kernel-install

这是另一个可能对你有帮助的资源。它还提到,是的,文档的碎片化有点麻烦。在

https://github.com/jupyter/jupyter/issues/71

在这里的链接中可以找到许多建议,假设您使用的是pip或Anaconda的某个版本。我也遇到了一点麻烦,让多个内核工作,然而,Python真的使事情更简单,更容易管理。他们甚至提供了python2.7版本的this下载。在

希望它能成功;Jupyter笔记本电脑是一种乐趣。在

相关问题 更多 >