4

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

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 站点中的指导进行的,但仍然没有顺利进行。这就是我所做的:

  1. 安装了python。
  2. 安装了 disutils
  3. 安装点
  4. 安装的 git(来自安装程序)
  5. 使用 git 克隆 ipython 代码
  6. 安装了ipython。

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

无法弄清楚出了什么问题。有什么帮助吗?

4

2 回答 2

4

可以像这样安装依赖项

pip install pyzmq jinja2 tornado

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

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

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

git submodule init
git submodule update

现在安装 IPython + IPython 笔记本

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
于 2013-08-06T03:52:29.497 回答
1

我写一个答案只是为了更新并能够编写代码(有没有更好的方法来做到这一点?)我做了你建议的“初始化,更新”步骤,并收到以下信息:

C:\Program Files\Git\bin\ipython>pip install .
Unpacking c:\program files\git\bin\ipython
Running setup.py egg_info for package from file:///c%7C%5Cprogram%20files%5Cgit%5Cbin%5Cipython

no previously-included directories found matching 'IPython\deathrow'
no previously-included directories found matching 'IPython\html\static\mathjax'
warning: no files found matching 'IPython\.git_commit_info.ini'
warning: no previously-included files found matching 'docs\#*'
warning: no previously-included files found matching 'docs\man\*.1.gz'
no previously-included directories found matching 'docs\build'
no previously-included directories found matching 'docs\gh-pages'
no previously-included directories found matching 'docs\dist'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.flc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '.dircopy.log' found anywhere in distribution
Cleaning up...

所以没有成功..现在要尝试安装rc版本。

于 2013-08-06T10:12:22.397 回答