1

我正在与

In [2]: bokeh.__version__
Out[2]: '0.12.1'

In [4]: holoviews.__version__
Out[4]: 1.8.4

以下导入

from holoviews.plotting.bokeh import BokehRenderer

产生错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-c53ae81a79e0> in <module>()
----> 1 from holoviews.plotting.bokeh import BokehRenderer

/usr/local/lib/python3.6/site-packages/holoviews/plotting/bokeh/__init__.py in <module>()
      2 
      3 import numpy as np
----> 4 from bokeh.palettes import all_palettes
      5 
      6 from ...core import (Store, Overlay, NdOverlay, Layout, AdjointLayout,

ImportError: cannot import name 'all_palettes'

它以前工作过,我无法追踪发生了什么变化。

4

2 回答 2

5

HoloViews 1.8.4 需要最新版本的散景,推荐 >=0.12.6。我建议升级:

conda install -c bokeh bokeh=0.12.9

或者

pip install bokeh
于 2017-10-09T12:22:48.367 回答
1

这对我有用:

pip install bokeh==0.12.15
pip install holoviews==1.10.4 
于 2018-06-11T19:15:50.363 回答