简体   繁体   English

无法在 vscode 中运行 jupyter 笔记本,IPyKernel 未安装到解释器中,Windows 10,Ananconda Distributor

[英]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.在此先感谢我希望有人能帮助我。

  1. 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

  2. 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.

相关问题 无法在 VSCode 中运行 Jupyter Notebook - Vanilla Python、Windows 10 - Can't run Jupyter Notebook in VSCode - Vanilla Python, Windows 10 即使安装了 ipykernel 也无法在 vscode 中运行 jupyter notebook,但它仍然显示它不是 - unable to run jupyter notebook in vscode even when ipykernel is installed and still it shows it is not 无法在 VScode 中打开 Python:Select 解释器或 Jupyter 笔记本 - Cannot open Python:Select Interpreter nor Jupyter notebooks in VScode 如何显示 Jupyter Notebook 的版本并在 Jupyter Notebook 中运行单元格? 我收到一个错误:错误的解释器 - How can I display the version of my Jupyter notebook and run cells in Jupyter notebooks? I get an error: bad interpreter vscode 中的 Jupyter Notebook 问题(所选解释器中未安装内核规范模块) - Jupyter Notebook issue in vscode (kernelspec module not installed in the selected interpreter) 由于 ipykernel,Jupyter 笔记本无法在 VScode 中工作 - Jupyter notebook not working in VScode because of ipykernel vscode 未检测到 ipykernel,已验证它实际上已安装 - vscode not detecting ipykernel, verified it is actually installed Pylance 在 VSCode Jupyter 笔记本中不起作用 - Pylance not working in VSCode Jupyter notebooks 尽管安装了 anaconda 解释器和火炬,但无法在 vscode 中导入火炬 - can't import torch in vscode despite having anaconda interpreter and torch installed 我已经成功安装了 lightgbm 但无法在 jupyter 中运行 - I have installed lightgbm successfully but can't run in jupyter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM