ImportError:没有名为'jupyter_client的模块

时间:2016-03-14 23:53:49

标签: python python-3.x ipython rodeo

民间,

我正在尝试在我的debian jessie盒子上安装RODEO。我已经成功地安装了已安装的竞技场,安装完成没有任何问题。但是,当我在命令行上键入“rodeo”时,我会收到以下错误消息:

xxxxxx@yyyyy:~$ 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 repos中搜索jupyter客户端时,我不能很好。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:8)

IPython 4.0在许多软件包中都有split,许多与笔记本和执行相关的软件包现在都是Jupyter的一部分。

如果rodeo支持4.0 API,您可以使用以下命令安装:

pip install --upgrade jupyter

几乎任何与IPython 3一起工作的东西应该与IPython 4和Jupyter一起使用,只要安装了额外的软件包.IPython包含已经移动的导入的填充程序。)

如果这不起作用,竞技场现在可能需要IPython 3.x.您可以使用以下命令将IPython固定为3.x./ / p>

pip install 'ipython[notebook]<4'