python - 错误 : Importing notebooks requires Jupyter nbconvert to be installed

标签 python visual-studio-code jupyter-notebook jupyter nbconvert

我正在尝试在 VS Code 的 Jupyter Notebook 中导入 ipynb 文件。但是我每次都会收到以下错误:

Error 2021-01-02 00:31:20: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed.
at u.getExportInterpreter (c:\Users\aviparna.biswas\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:32:546101)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async _.export (c:\Users\aviparna.biswas\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:251215)
at async c:\Users\aviparna.biswas\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:428354
at async u.waitWithStatus (c:\Users\aviparna.biswas\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:805850)
at async E.importNotebook (c:\Users\aviparna.biswas\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:428274)
at async E.listenForErrors (c:\Users\aviparna.biswas\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:423814)]
我还使用 pip 在 VS Code 中安装了 nbconvert,并且还重新启动了 VS Code。问题一直存在。

最佳答案

在 Windows 上,将它安装在默认的 python 上并重新启动 vscode 解决了这个问题。conda install nbconvertpip install nbconvert

关于python - 错误 : Importing notebooks requires Jupyter nbconvert to be installed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65532812/

相关文章:

python - 根据现有列中的值将随机值分配给数据框列

Python、数学和 Latex : Display + Compute?

python - IPython 和内联 Matplotlib 图大小

python libcloud vcloud连接

python - 使用 py.test 以编程方式收集或创建测试

python - 在几分钟内获取超过某个年龄的 elasticsearch 文档

php - Visual Studio Code PHP 验证错误 : Cannot validate since/usr/bin/php is not a valid php executable

visual-studio-code - 如何配置多个格式化程序以在 VSCode 中保存时按顺序运行?

visual-studio-code - scss 文件中 @use 上的 VSCode 警告

dataframe - 将 QVD 文件导入 Jupyter notebook - python2