2013-08-05 170 views
4

我今天尝试安装IPython的开发版本,但是当我运行“ipython notebook --pylab = inline” 我得到一个空的笔记本打开(没有仪表板,只是一个白衣空白页)和命令行中说:IPython笔记本在安装IPython dev版本后不会启动

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的现场指导,但仍didnt走畅。这是我做的:

  1. 安装了python。
  2. 安装disutils
  3. 安装PIP
  4. 安装GIT中(从安装程序)
  5. 用git
  6. 安装IPython的克隆IPython的代码。

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

不知道出了什么问题。任何帮助?

+0

您是如何在步骤#6中执行安装的?干净地完成了吗?你有没有安装日志? – punchagan

+0

不幸的是,cmd缓冲区太短。我在开发安装指南中提到:“git setup.py install”来自在git文件夹中创建的ipython目录。我没有看到安装中没有错误,也许是一些警告..我可以再次安装它,并在需要时观察错误... – idoda

+0

是否运行'git submodule init'后跟'git submodule update'帮助并再次安装有帮助?另外,请注意这次有任何错误。 – punchagan

回答

4

的依赖可以安装像这样

pip install pyzmq jinja2 tornado 

然而,安装一个简单的方法是

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

至于与静态文件的怪事,我碰到的这个问题时,因为有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 
+0

RC选项非常棒!谢谢! – idoda

+0

不知道你为什么建议不在IPython文档中。安装教程真的很缺乏。 – idoda

+0

@ user1945306 - 您可以随时对IPython文档进行拉取请求以改进它们!我认为在下周的IPython 1.0发布时安装最新,最好的版本会容易得多。 –

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版本。

+0

更新:安装RC版本成功。仍然不知道为什么上述不工作。 – idoda