2017-10-09 66 views
0

我與holoviews /背景虛化的導入錯誤

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

HoloViews 1.8.4需要推薦使用> = 0.12.6的最新版本的散景。我建議與升級:

conda install -c bokeh bokeh=0.12.9 

pip install bokeh 
+0

謝謝,這解決了這個問題。我以爲我在運行'pip3 install --upgrade bokeh'後有最新的散景,但顯然需要重新安裝。 – clstaudt