天天看點

Jupyter無法導出PDF,遇到的諸多問題

解決問題:

  • nbconvert failed: Inkscape svg to pdf conversion failed.
  • FileNotFoundError: [WinError 2] 系統找不到指定的檔案
  • nbconvert failed: Pandoc wasn’t found

解決方法:

  1. nbconvert failed: Inkscape svg to pdf conversion failed.

    Jupyter無法導出PDF,遇到的諸多問題

解決:安裝Inkscape

注意:

  • ①.目錄沒有空格
  • ② 選擇給所有使用者添加路徑(add…path)
  1. FileNotFoundError: [WinError 2] 系統找不到指定的檔案

    Jupyter無法導出PDF,遇到的諸多問題
  • 位置:Lib/pythonxxx/subprocess.py
  • 裡的shell=False改成

    shell=True

3.

nbconvert failed: Pandoc wasn't found.

Please check that pandoc is installed:

https://pandoc.org/installing.html

Jupyter無法導出PDF,遇到的諸多問題

安裝 Pandoc: http://pandoc.org/installing.html

安裝 miktex

可以設定自動下載下傳 不用提示。

解決效果:

導出後有點慢,jupyter看背景:

Jupyter無法導出PDF,遇到的諸多問題

效果:

Jupyter無法導出PDF,遇到的諸多問題