python - 在 Windows 上使用 IPython Notebook 时出现 500 服务器错误

标签 python node.js ipython windows-7-x64 ipython-notebook

我刚刚在 Windows 7 Professional 64 位上全新安装了 IPython notebook。

我采取的步骤是:

  1. http://python.org 安装 Python 3.4.1
  2. > pip install ipython[notebook]
  3. > pip install pywin numpy pygments nodeenv

我可以很好地打开笔记本。

但是,当我选择 File > Print PreviewFile > 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 没有帮助。

关于如何修复这个错误有什么想法吗?

我已经 raised it as an issue与 IPython 团队合作。

最佳答案

这个有效:

  1. 右键单击开始菜单中的命令提示符
  2. 选择以管理员身份运行
  3. 在“用户帐户控制”对话框中选择
  4. 在出现的命令提示符窗口中运行 ipython notebook

基本上,出于某种原因,它必须以管理员身份运行。

关于python - 在 Windows 上使用 IPython Notebook 时出现 500 服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25178602/

相关文章:

python - Python 中的嵌套函数调用

python - 如何在 Python for 循环中使用多个变量?

python - 尝试转换py文件时,Pyinstaller中出现错误?

node.js - 带有前缀的 Node JS 谷歌云消息传递主题出现错误 : Malformed topic name

node.js - 配置后无法使用 "cmd"命令安装bower和yeoman

python - 如何摆脱 Python Jupyter notebook 错误 : 404 GET/nbextensions/nbextensions_configurator/tree_tab/main. js

python - python dict 的 len() 相对于 GIL 是原子的吗?

javascript - 在node.js中读取文件是否保证项目的顺序

python - 在 IPython 中将 ASCII 变量的内容重定向输出和/保存到磁盘

ipython - 如何在Jupyter内核中获取cell的ID?