[英]Can't run jupyter notebooks in vscode, IPyKernel not installed into interpreter, Windows 10, Ananconda Distributor
I know there are several posts related to this error, but so far none of the solutions I've read has worked, also it seems to be dependent on the software versions, so I decided to make my own post,我知道有几篇与此错误相关的帖子,但到目前为止,我读过的解决方案都没有奏效,而且它似乎取决于软件版本,所以我决定发表自己的帖子,
The linked image shows the error message I get from vscode, when it tries to install IPyKernel it says it is already installed.链接的图像显示了我从 vscode 获得的错误消息,当它尝试安装 IPyKernel 时,它说它已经安装。
Error message in vscode vscode 中的错误消息
I am using python 3.7.9, conda version 4.9.2, vscode 1.52, windows 10, and the conda base environment.我用的是python 3.7.9,conda版本4.9.2,vscode 1.52,windows 10,conda基础环境。
Please let me know if you need any additional information or logs,如果您需要任何其他信息或日志,请告诉我,
thanks in advance I hope someone can help me.在此先感谢我希望有人能帮助我。
Turn to the directory which says ipykernel
is already installed and delete the file ipykernel
or directly empty the folder site-packages
;转到ipykernel
已经安装的目录,删除ipykernel
文件或直接清空文件夹site-packages
;
Open the integrated Terminal(Ctrl+Shift+`), activate the conda environment then run the command:打开集成终端(Ctrl+Shift+`),激活 conda 环境然后运行命令:
pip install ipykernel
Make Sure the interpreter used in jupyter should be selected rightly:确保正确选择 jupyter 中使用的解释器:
We've identified and resolved a related issue.我们已经确定并解决了一个相关问题。 The fix can be found in the attached VSIX.可以在随附的 VSIX 中找到该修复程序。
Please could you enable logging for the Jupyter extension as follows:请按如下方式为 Jupyter 扩展启用日志记录:
1.- Open user settings (Preferences: Open User Settings & go into Jupyter->Logging Change the value to debug and Reload VS Code. 1.- 打开用户设置(首选项:打开用户设置和 go 进入 Jupyter->Logging 将值更改为调试并重新加载 VS 代码。
Install this copy of the VSIX: https://pvsc.blob.core.windows.net/extension-builds-jupyter-public/ms-python-insiders.vsix安装此 VSIX 副本: https://pvsc.blob.core.windows.net/extension-builds-jupyter-public/ms-python-insiders.vsix
2.- Download & install using the command Extensions; 2.- 使用命令扩展下载和安装; Install from VSIX从 VSIX 安装
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.