VScode当中运行Jupyter显示ipykernel无法启动

问题遇到的现象和发生背景

在VS code中初次运行 jupyter,按照提示安装了ipykernel,
但安装后试运行 jupyter 时,却显示

Failed to start the Kernel.

问题相关代码,请勿粘贴截图

试图运行任何python代码均显示

Failed to start the Kernel.

运行结果及报错内容

Failed to start the Kernel.
c:\work\py_test.venv\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(
c:\work\py_test.venv\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '89e79e74-6883-4ed3-b445-aaa9a48c5320' instead of 'b"89e79e74-6883-4ed3-b445-aaa9a48c5320"'.
warn(
Bad file descriptor (C:\projects\libzmq\src\epoll.cpp:100).
View Jupyter log for further details.

我的解答思路和尝试过的方法

我曾经以为是ipykernel安装出了问题,
于是运用 pip 试图重新安装 ipykernel,
但均显示

Requirement already satisfied

我想要达到的结果

能够在VS code中,正常运行 ipykernel 和 jupyter

你要安装哪个版本的

ctrl+shift+P

img


img


看看你vscode使用的是哪个路径的python,然后使用那个版本的python安装jupyter