0
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'
它已經過班,而且我可以」跟蹤改變了什麼。
謝謝,這解決了這個問題。我以爲我在運行'pip3 install --upgrade bokeh'後有最新的散景,但顯然需要重新安裝。 – clstaudt