本文介绍了Jupyter Notebook导出失败,并显示"nbconvert失败:Inkscape svg到pdf转换失败".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

当我尝试将Jupyter笔记本导出为pdf格式时,出现以下错误. nbconvert failed: Inkscape svg to pdf conversion failed.是什么原因引起的错误?

When I try to export a Jupyter notebook to pdf format, I receive the following error. nbconvert failed: Inkscape svg to pdf conversion failed. What's causing the error?

推荐答案

当前这是一个未解决的问题,它看起来像: https://github.com/jupyter/nbconvert/issues/1325

This is currently an open issue it seems like: https://github.com/jupyter/nbconvert/issues/1325

但是对我来说,安装nbconvert 6.0.0版本是可行的.在该版本中, @Raoul 提到的代码已被修改:

But for me installing the nbconvert 6.0.0 version worked. In that version the code that @Raoul mentions has been modified:

pip install nbconvert==6.0.0

您还需要安装Inkscape +确保可以从终端打开Inkscape.在MacOS中,我必须这样做:

You also need to have Inkscape installed + make sure you can open inkscape from the terminal. In MacOS i had to do this:

ln -s /Applications/Inkscape.app/Contents/MacOS/inkscape \
      /usr/local/bin/inkscape

我认为可执行文件的确切位置取决于您的inkscape版本.但是,如果您使用的是最新版本,则应该相同.本质上,在终端中键入inkscape应该会打开inkscape.那就是你想要的.

I think where exactly the executable is depends on your version of inkscape. But if you have the latest version, it should be the same. Essentially typing inkscape in the terminal should open inkscape. That's what you want.

这篇关于Jupyter Notebook导出失败,并显示"nbconvert失败:Inkscape svg到pdf转换失败".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 10:28