简体   繁体   English

将 jupyter notebook 转换为 pdf:安装 pandoc 时遇到错误

[英]Convert jupyter notebook to pdf: Error encounters when install pandoc

I was trying to convert .ipynb to a pdf.我试图将 .ipynb 转换为 pdf。 I'm on Windows and use Jupyter via IE browser.我在 Windows 上并通过 IE 浏览器使用 Jupyter。

I'm following the link http://pandoc.org/installing.html to install Pandoc.我正在按照链接http://pandoc.org/installing.html安装 Pandoc。 Here's what I have done: Any suggestions?这是我所做的:有什么建议吗?

  • Install MikTex: http://miktex.org/download安装 MikTex: http ://miktex.org/download
  • Install pandoc安装 pandoc

    • Install stack:安装堆栈:
    • -got to cmd from pandoc folder, run stack setup - 从 pandoc 文件夹到 cmd,运行堆栈设置
    • -stack init -堆栈初始化
    • -stack install---->ERRORS!! -堆栈安装---->错误!!

    在此处输入图片说明

If you would like an alternative to it instead of using nbconvert what you can do is :如果您想要替代它而不是使用 nbconvert 您可以做的是:

  1. Download your ipynb file as HTML from File option.从“文件”选项将您的 ipynb 文件下载为 HTML。
  2. Right-click and select print or use Ctrl + P .右键单击并选择打印或使用Ctrl + P
  3. Save as PDF另存为 PDF

Easy.容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM