全息视图/散景导入错误
holoviews / bokeh import error
我正在与
合作
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'
它以前有效,但我无法追踪发生了什么变化。
HoloViews 1.8.4 需要最新版本的散景,推荐 >=0.12.6。我建议升级:
conda install -c bokeh bokeh=0.12.9
或
pip install bokeh
这对我有用:
pip install bokeh==0.12.15
pip install holoviews==1.10.4
我正在与
合作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'
它以前有效,但我无法追踪发生了什么变化。
HoloViews 1.8.4 需要最新版本的散景,推荐 >=0.12.6。我建议升级:
conda install -c bokeh bokeh=0.12.9
或
pip install bokeh
这对我有用:
pip install bokeh==0.12.15
pip install holoviews==1.10.4