After Python pyecharts not introduced on Bar

After you import the Pyecharts package Pycharm, the Bar there is a problem can not be successfully imported.

  1. The first thing to check is that in this project or another folder if there pyecharts named py file.
  2. After pyecharts pip install will install the latest version of pyecharts, version estimate is relatively high, the method is used when importing
  3. from pyecharts.charts import
  4. Found that there are still problems, the final approach (used when importing attention lowercase bar, when the system call bar.Bar):
    PIP Uninstall pyecharts
    PIP install pyecharts == 0.1.9.5
    from pyecharts.charts Import bar
    Chart = bar.Bar ( "National minimum temperature")

Guess you like

Origin blog.51cto.com/zhangfang526/2476798