Python nbconvert:ValueError:没有名为';rst&x27;在以下路径中找到:[LS个路径]
我正在使用Python nbconvert:ValueError:没有名为';rst&x27;在以下路径中找到:[LS个路径],python,jupyter-notebook,restructuredtext,nbconvert,Python,Jupyter Notebook,Restructuredtext,Nbconvert,我正在使用nbconvert将降价文件转换为pdf。在我使用的代码中,我使用了writer=nbconvert.RSTExporter(),但在使用writer.from\u notebook\u node()呈现结果时,我遇到了错误: ValueError: No template sub-directory with name 'rst' found in the following paths: /Users/hoanguyen/Library/Jupyter /Users/hoanguy
nbconvert
将降价文件转换为pdf。在我使用的代码中,我使用了writer=nbconvert.RSTExporter()
,但在使用writer.from\u notebook\u node()
呈现结果时,我遇到了错误:
ValueError: No template sub-directory with name 'rst' found in the following paths:
/Users/hoanguyen/Library/Jupyter
/Users/hoanguyen/miniconda3/envs/d2l-book/share/jupyter #this is my current environment
/usr/local/share/jupyter
/usr/share/jupyter
代码可以在这里看到:
我安装了nbconvert,pandoc和,我也安装了Tex
如何安装nbconvert的rst
模板?请帮我建议一些解决这个问题的方法
系统信息:
ProductName: Mac OS X
ProductVersion: 10.15.1
python: 3.6
nbconvert: 6.0.0a3
pandoc: 1.0.2
出于未知原因,6.0.0及更高版本不包括模板。解决方法是从存储库中的旧版本手动下载它们。(例如)您可以安装旧版本的nbconvert,因为类似的错误5.6.1对我适用。谢谢@Joost。这对我也有用,这也救了我。谢谢你@Joost