[英]Unable to start session for jupyter kernel python vscode
我查看了有关堆栈溢出和 github 的其他问题:
https://github.com/microsoft/vscode-jupyter/issues/728 无法在 VS Code 上启动 Jupyter notebook
很多人可以运行这个命令:
python -m pip install 'traitlets==4.3.3' --force-reinstall
这将解决 jupyter kernel 未在 vscode 中加载的问题。
我一直在连接到 kernel 时遇到问题,一段时间后我收到一条消息:
Unable to start session for kernel Python 3.7.4 64 bit ('name_of_virtual_environment'). Select another kernel to launch with.
我正在使用带有 ubuntu 20.04 LTS 的 wsl 2,并且我选择了正确的 python 解释器(对于 python 扩展和实际笔记本)。 我也在使用 pyenv 来创建我的虚拟环境。 vscode 版本 1.52.1
任何帮助,将不胜感激。
建议您检查Jupyter notebook所需的依赖package "ipykernel" 是否已成功安装在您选择的python环境中:(" pip show ipykernel
")
卸载 jupyter 及其依赖项,然后重新安装它们。
pip uninstall jupyter
pip uninstall jupyter_core
pip uninstall jupyter-client
pip uninstall jupyter-console
pip uninstall jupyterlab_pygments
pip uninstall notebook
pip uninstall qtconsole
pip uninstall nbconvert
pip uninstall nbformat`
重新安装 jupyter notebook 和插件
pip install jupyter
pip install jupyter_core
pip install jupyter-client
pip install jupyter-console
pip install jupyterlab_pygments
pip install notebook
pip install qtconsole
pip install nbconvert
pip install nbformat
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.