似乎缺少某些东西,但它没有提供任何进一步的信息。任何人都可以提示吗?
命令是ipython nbconvert --to latex --post pdf Week_Report_2014-10-19.ipynb“
输出消息如下。非常感谢你。
[NbConvertApp] Using existing profile dir: u'/Users/elsdrm/.ipython/profile_default'
[NbConvertApp] Converting notebook Week_Report_2014-10-19.ipynb to latex
[NbConvertApp] Support files will be in Week_Report_2014-10-19_files/
[NbConvertApp] Loaded template article.tplx
[NbConvertApp] Writing 13726 bytes to Week_Report_2014-10-19.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running pdflatex 3 times: [u'pdflatex', u'Week_Report_2014-10-19.tex']
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 11, in <module>
sys.exit(start_ipython())
File "/Library/Python/2.7/site-packages/IPython/__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 564, in launch_instance
app.start()
File "/Library/Python/2.7/site-packages/IPython/terminal/ipapp.py", line 367, in start
return self.subapp.start()
File "/Library/Python/2.7/site-packages/IPython/nbconvert/nbconvertapp.py", line 268, in start
self.convert_notebooks()
File "/Library/Python/2.7/site-packages/IPython/nbconvert/nbconvertapp.py", line 311, in convert_notebooks
self.postprocessor(write_resultes)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/base.py", line 28, in __call__
self.postprocess(input)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/pdf.py", line 140, in postprocess
cont = self.run_latex(filename)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/pdf.py", line 104, in run_latex
self.latex_count, log_error)
File "/Library/Python/2.7/site-packages/IPython/nbconvert/postprocessors/pdf.py", line 84, in run_command
p = subprocess.Popen(command, stdout=stdout, stdin=null)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
c.Application.verbose_crash=True
答案 0 :(得分:0)
鉴于错误在pdflatex
即tex-&gt; pdf阶段失败,您是否安装了pdflatex
或不同的乳胶编译器?看起来.tex
文件是成功生成的,而不是.pdf