Mac(M1)环境下已安装nbconvert但导出PDF/HTML仍提示未安装的问题求助
Mac(M1)环境下已安装nbconvert但导出PDF/HTML仍提示未安装的问题求助
大家好,我用的是M1芯片的Mac,目前Python版本是3.13,已经安装了Jupyter、nbconvert和MacTex,但在尝试导出Notebook的时候一直失败,提示nbconvert未安装,实在搞不定了来求助!
下面是我导出时的报错日志:
23:52:36.218 [info] Process Execution: /usr/local/bin/python3 -c "import nbconvert;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" 23:52:36.468 [info] Process Execution: /usr/local/bin/python3 -c "import nbconvert;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" 23:52:36.652 [info] Process Execution: /usr/local/bin/python3 -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" 23:52:36.674 [info] Process Execution: /usr/local/bin/python3 -c "import nbconvert;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" 23:52:36.862 [error] Export failed [Error: Jupyter nbconvert is not installedat bu.getExportInterpreter (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:321:8178)at async Cf.executeCommand (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:321:8680)at async zT.export (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:322:412)at async kb.performNbConvertExport (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:324:2500)at async kb.performExport (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:324:2190)at async kb.exportImpl (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:324:1798)at async kb.export (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:324:1530)at async C0.export (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.11.0-darwin-arm64/dist/extension.node.js:373:3134)at async cw.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:32825)] 23:52:36.863 [error] If you have not installed xelatex (TeX), you will need to do so before you can export to PDF. For further instructions, please see https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex.To avoid installing xelatex (TeX), you might want to try exporting to HTML and using your browser's "Print to PDF" feature.
我已经尝试过这些操作,但都没解决问题:
- 卸载重装了Python和pip3
- 卸载重装了nbconvert
- 把MacTex添加到系统PATH中,执行了命令
export PATH=/Library/TeX/texbin:$PATH
有没有大佬遇到过类似问题,或者能给点排查方向?谢谢大家!
备注:内容来源于stack exchange,提问作者Omi Brown
相关产品推荐
相关产品推荐

