安装IPython开发版后,IPython笔记本无法启动 [英] IPython notebook does not launch after installing IPython dev version

查看:297
本文介绍了安装IPython开发版后,IPython笔记本无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天尝试安装开发版的IPython,但是当我运行ipython notebook --pylab = inline
我打开一个空笔记本(没有仪表板,只是一个白色的空白页)和命令行说:

I tried today to install the dev version of IPython, but when i run "ipython notebook --pylab=inline" I get an empty notebook opens (no dash board, just a whit blank page) and the command line says:

WARNING:tornado.access:404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (127.0.0.1) 0
2013-08-05 16:49:57.365 [tornado.access] WARNING | 404 GET /static/components/jquery/jquery.min.js (127.0.0.1
WARNING:tornado.access:404 GET /static/components/jquery/jquery.min.js (127.0.0.1) 0.00ms
2013-08-05 16:49:57.367 [tornado.access] WARNING | 404 GET /static/components/requirejs/require.js (127.0.0.1
WARNING:tornado.access:404 GET /static/components/requirejs/require.js (127.0.0.1) 0.00ms
2013-08-05 16:49:57.371 [tornado.access] WARNING | 404 GET /static/components/bootstrap/bootstrap/js/bootstra
WARNING:tornado.access:404 GET /static/components/bootstrap/bootstrap/js/bootstrap.min.js (127.0.0.1) 1.00ms
2013-08-05 16:49:57.372 [tornado.access] WARNING | 404 GET /static/components/jquery-ui/ui/minified/jquery-ui
WARNING:tornado.access:404 GET /static/components/jquery-ui/ui/minified/jquery-ui.min.js (127.0.0.1) 1.00ms

这可能是由于安装我是的,这是在ipython网站的指导,但仍然没有顺利。这就是我做的:

It might be due to the installation I did, which was by the guidance in ipython site, but still didnt go smooth. this is what i did:


  1. 已安装python。

  2. 已安装disutils

  3. 已安装pip

  4. 已安装git(来自安装程序)

  5. 使用git
  6. 克隆ipython代码
  7. 已安装ipython。

  1. installed python.
  2. installed disutils
  3. installed pip
  4. installed git (from an installer)
  5. cloned the ipython code using git
  6. installed ipython.

我认为这就足够了。但是当我尝试启动笔记本时它失败了,告诉我找不到pyzmq。所以我安装了pyzmq。下次发射也失败了,这次是因为jinja2。所以我也安装了它。接下来我安装龙卷风..等等,直到我拿起笔记本电脑。但是当它发生时,发生在顶部提到的。

I thought that was enough. but when I tried to launch the notebook it failed, telling me that pyzmq is not found. so I installed pyzmq. next launch failed as well, this time because of jinja2. so i installed it too. next i installed tornado.. and so on until i got the notebook up. but when it did, happen the mentioned in the top.

无法弄清楚出了什么问题。任何帮助?

Cant figure out what went wrong. any help?

推荐答案

可以像这样安装依赖项

pip install pyzmq jinja2 tornado

但是,更简单的安装方式是

However, an easier way to install is to

pip install .[notebook] # These brackets are literally there, not optional

至于静态文件的奇怪之处,我在编写主分支时遇到了这个问题,因为有git子模块。 pip 的当前版本应能够解析这些子模块。如果你的没有,在ipython目录中(克隆后)运行

As for the weirdness with static files, I've run into this problem when coding against the master branch, as there are git submodules. The current version of pip should be able to resolve these submodules. If yours doesn't, within the ipython directory (after you clone it) run

git submodule init
git submodule update

现在安装IPython + IPython笔记本

Now install IPython + IPython notebook

pip install .[notebook]

但是,你可以直接安装IPython 1.0的候选版本

pip install http://archive.ipython.org/testing/1.0.0/ipython-1.0.0-rc1.tar.gz#egg=ipython-1.0.0-rc1

这篇关于安装IPython开发版后,IPython笔记本无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆