Use pip install pyecharts to download, the latest version is downloaded by default.
Directly from pyecharts import Bar reports an error, you have to import from pyecharts.charts.basic_charts import bar.
Or just download pyecharts0. 1.9.4 version.
The error is as follows.
pyecharts in the __init_.py file as follows: