6

I have been running Anaconda for a few days. I can run a notebook by doing ipython notebook in command prompt. I'm now trying to convert a note book to latex or pdf by doing ipython nbconvert --to latex mynotebook.ipynb but I get the error `

PandocMissing: Pandoc wasn't found.

along with many error messages. I have MikTex installed. I see pandoc.py in the folder C:\Users\Me\Anaconda\Lib\site-packages\IPython\nbconvert\utils. What can the problem be?

Marcin Możejko
  • 39,542
  • 10
  • 109
  • 120
theQman
  • 1,690
  • 6
  • 29
  • 52

2 Answers2

8

pandoc is not a python package. IPython\nbconvert\utils\pandoc.py is not pandoc itself, but merely a helper module.

For conda users, there is a pandoc package available at conda-forge.

conda install -c conda-forge pandoc

Alternatively, you can download the latest release from the pandoc's github repository.

cel
  • 30,017
  • 18
  • 97
  • 117
6

Once you have Pandoc installed you will have to add the directory that contains it to your PATH variable.

See this answer for details on how to do that.

Community
  • 1
  • 1
Tony Williams
  • 613
  • 3
  • 18