2012-04-12 123 views
6

我試圖在Vista中運行IPython筆記本。我相信我用easy_install安裝了所有必需的依賴項(列出了here)。 IPython運行良好。但是當我嘗試運行IPython筆記本時,一切都很順利,但是一旦我嘗試做任何事情,內核就會死亡。我得到以下混淆錯誤:IPython筆記本中的Pyzmq錯誤

Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "C:\Python27\lib\site-packages\ipython-0.11-py2.7.egg\IPython\zmq\__init__.py", line 25, in <module> 
    minimum_pyzmq_version, pyzmq_version)) 
ImportError: IPython.zmq requires pyzmq >= 2.1.4, but you have 2.1.11 

2.1.11> = 2.1.4所以我不確定問題是什麼。 2.1.11是pyzmq的最新版本(here是項目頁面)。

[更新:謝謝@ThomasK。我已經運行IPython 0.12,但是我在IPython和pyzmg上運行了easy_install --upgrade並修復了它。]

+0

你的回溯說'ipython-0.11-py2.7.egg',所以肯定有一個IPython 0.11安裝涉及某種方式。 – 2012-04-12 21:26:05

回答

1

該錯誤已在IPython 0.12中修復,因此您需要升級。無論如何,你需要0.12來運行筆記本。

如果您在升級時遇到問題,請嘗試刪除安裝IPython 0.11的文件夾,然後使用easy_install重新安裝。