Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/356.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python nbconvert:ValueError:没有名为';rst&x27;在以下路径中找到:[LS个路径]_Python_Jupyter Notebook_Restructuredtext_Nbconvert - Fatal编程技术网

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