2016-03-14 155 views
1

Folk,ImportError:No module named'jupyter_client

我想在我的debian jessie盒子上安裝RODEO。我成功地點了安裝的rodeo,安裝完成沒有任何問題。然而,當我在命令行中輸入「圈地」我招呼着以下錯誤消息:

[email protected]:~$ rodeo 
/usr/local/lib/python3.4/dist-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. 
    "You should import from ipykernel or jupyter_client instead.", ShimWarning) 
Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/rodeo/kernel.py", line 3, in <module> 
    from jupyter_client import BlockingKernelClient 
ImportError: No module named 'jupyter_client' 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/bin/rodeo", line 9, in <module> 
    load_entry_point('rodeo==0.4.4', 'console_scripts', 'rodeo')() 
    File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 549, in load_entry_point 
    return get_distribution(dist).load_entry_point(group, name) 
    File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2542, in load_entry_point 
    return ep.load() 
    File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2202, in load 
    return self.resolve() 
    File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2208, in resolve 
    module = __import__(self.module_name, fromlist=['__name__'], level=0) 
    File "/usr/local/lib/python3.4/dist-packages/rodeo/cli.py", line 33, in <module> 
    from .rodeo import main 
    File "/usr/local/lib/python3.4/dist-packages/rodeo/rodeo.py", line 2, in <module> 
    from .kernel import Kernel 
    File "/usr/local/lib/python3.4/dist-packages/rodeo/kernel.py", line 5, in <module> 
    from IPython.kernel import BlockingKernelClient 
    File "/usr/local/lib/python3.4/dist-packages/IPython/kernel/__init__.py", line 31, in <module> 
    from ipykernel import comm, inprocess 
ImportError: No module named 'ipykernel' 

有人能提供一些線索,如我的IPython安裝。當在apt回購中搜索jupyter客戶時,我無法罰款。任何幫助,將不勝感激。

+0

Jupyter是ipython的新名稱,也許您有舊版本。嘗試'皮皮安裝jupyter [筆記本]' –

回答

5

IPython 4.0將split分成許多包,許多與筆記本和執行相關的包現在成爲Jupyter的一部分。

如果圈地支持4.0 API,您可以用安裝這些:

pip install --upgrade jupyter 

幾乎任何與IPython的3合作應與IPython的4和Jupyter工作,只要額外的軟件包安裝.IPython包含已移動的導入墊片。)

如果這樣不起作用,那麼rodeo可能需要IPython 3.x。您可以將IPython固定爲3.x:

pip install 'ipython[notebook]<4' 
+0

皮皮安裝 - 升級jupyter工作:) – RussellB