ImportError: cannot import name 'Nullable' from 'bokeh.core.properties' (C:\ProgramData\Anaconda3\lib\site-packages\bokeh\core\properties.py)

ImportError: cannot import name 'Nullable' from 'bokeh.core.properties' (C:\ProgramData\Anaconda3\lib\site-packages\bokeh\core\properties.py)

导入时弹出以上错误 holoviews.I 尝试不同的方法但没有用。以下导入

        import plotly.express as px
        from wordcloud import WordCloud,STOPWORDS
        import holoviews as hv
        from holoviews import opts
        hv.extension('bokeh')
        
        And installed the bokeh using pip install bokeh
produces an error:
        ImportError: cannot import name 'Nullable' from 'bokeh.core.properties' (C:\ProgramData\Anaconda3\lib\site-packages\bokeh\core\properti`enter code here`es.py)

        how can I fix this error?

Nullable 是最近添加的。您需要安装较新版本的 Bokeh。

我更新了 holoviews 和 bokeh 版本,bokeh=2.3.2 holoviews=1.14 nullable 最近添加了 -v 2.3.2。现在一切正常。