【问题标题】:ImportError: cannot import name PolyDrawTool (Not able to Import - PolyDrawTool)ImportError:无法导入名称 PolyDrawTool(无法导入 - PolyDrawTool)
【发布时间】:2018-04-17 11:23:55
【问题描述】:

I am Trying to run this example(无法导入 - PolyDrawTool)

Python 2.7
散景 v0.12

导入错误:

ImportError                               Traceback (most recent call last)
<ipython-input-1-cc6a3ae44bb8> in <module>()
      1 from bokeh.plotting import figure, output_file, show
----> 2 from bokeh.models import PolyDrawTool
      3 
      4 output_file("tools_poly_draw.html")
      5 

ImportError: cannot import name PolyDrawTool

【问题讨论】:

    标签: python python-2.7 bokeh importerror


    【解决方案1】:

    PolyDrawTool 是一个非常新的功能,它比版本0.12 要新得多。您需要更新 Bokeh 版本才能使用它。当前最新版本是0.12.15

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-10
      • 2014-09-20
      • 2014-08-28
      • 2014-06-10
      • 2016-05-16
      • 2019-05-25
      • 2017-04-22
      相关资源
      最近更新 更多