我今天尝试安装开发版的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网站的指导,但仍然没有顺利。这就是我所做的:
我认为这就够了。但是当我试图启动笔记本时它失败了,告诉我没找到pyzmq。所以我安装了pyzmq。下次发射也失败了,这次是因为jinja2。所以我也安装了它。接下来我安装龙卷风..等等,直到我拿起笔记本电脑。但是当它发生时,发生在顶部提到的。
无法弄清楚出了什么问题。有什么帮助吗?
答案 0 :(得分: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 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
答案 1 :(得分: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版本。