2013-08-05 172 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