我正在使用
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'
之前已经奏效了,我无法追踪已发生变化的事情。
答案 0 :(得分:5)
HoloViews 1.8.4需要最新版本的散景,建议使用&gt; = 0.12.6。我建议升级:
conda install -c bokeh bokeh=0.12.9
或
pip install bokeh
答案 1 :(得分:0)
这对我有用:
pip install bokeh==0.12.15
pip install holoviews==1.10.4