【发布时间】:2014-08-07 09:14:56
【问题描述】:
我刚刚在 Windows 7 Professional 64 位上全新安装了 IPython notebook。
我采取的步骤是:
- 从http://python.org 安装 Python 3.4.1
> pip install ipython[notebook]> pip install pywin numpy pygments nodeenv
我可以很好地打开一个笔记本。
但是,当我选择 File > Print Preview 或 File > Download as HTML 时,出现 500 服务器错误。
堆栈跟踪是:
2014-08-07 09:44:25.431 [NotebookApp] Loaded template full.tpl
C:\Python34\lib\site-packages\IPython\nbconvert\filters\markdown.py:78: UserWarning: Node.js 0.9.12 or later wasn't found.
Nbconvert will try to use Pandoc instead.
"Nbconvert will try to use Pandoc instead.")
WARNING:tornado.general:500 GET /nbconvert/html/Users/Tom%20Oakley/Documents/IPython%20test.ipynb?download=false (::1): nbconvert failed: you need to have pywin32 installed for this to work
ERROR:tornado.access:{
"Dnt": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36",
"Referer": "http://localhost:8888/notebooks/Users/Tom%20Oakley/Documents/IPython%20test.ipynb",
"Host": "localhost:8888",
"Connection": "keep-alive",
"Accept-Language": "en-US,en;q=0.8,en-GB;q=0.6",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding": "gzip,deflate,sdch"
}
ERROR:tornado.access:500 GET /nbconvert/html/Users/Tom%20Oakley/Documents/IPython%20test.ipynb?download=false (::1) 156.01ms referer=http://localhost:8888/notebooks/Users/Tom%20Oakley/Documents/IPython%20test.ipynb
WARNING:tornado.access:404 GET /favicon.ico (::1) 1.00ms referer=None
安装 node.js 和 Pandocs 没有帮助。
关于如何修复此错误的任何想法?
我在 IPython 团队有 raised it as an issue。
【问题讨论】:
标签: python node.js ipython windows-7-x64 ipython-notebook