1.安装(注意本机设置pip3.7,每个机器不一样,有的是pip,有的是pip3)
sudo pip3.7 install pyecharts
sudo pip3.7 install pyecharts_snapshot
建立软连接:
ln -s /usr/local/python3.7/bin/snapshot /usr/bin/snapshot
2.额外包:
sudo pip3.7 install echarts-countries-pypkg
sudo pip3.7 install echarts-china-provinces-pypkg
sudo pip3.7 install echarts-china-cities-pypkg
sudo pip3.7 install echarts-countries-pypkg
sudo pip3.7 install echarts-china-provinces-pypkg
sudo pip3.7 install echarts-china-cities-pypkg
3. pyecharts包含的图表
Bar(柱状图/条形图)
Bar3D(3D 柱状图)
Boxplot(箱形图)
EffectScatter(带有涟漪特效动画的散点图)
Funnel(漏斗图)
Gauge(仪表盘)
Geo(地理坐标系)
Graph(关系图)
HeatMap(热力图)
Kline(K线图)
Line(折线/面积图)
Line3D(3D 折线图)
Liquid(水球图)
Map(地图)
Parallel(平行坐标系)
Pie(饼图)
Polar(极坐标系)
Radar(雷达图)
Sankey(桑基图)
Scatter(散点图)
Scatter3D(3D 散点图)
ThemeRiver(主题河流图)
WordCloud(词云图)
4.建立软连接:
5.卸载:
pip3.7 uninstall pyecharts
6.源码安装(简单)
6.1 去下载 https://github.com/pyecharts/pyecharts.git
6.2
cd pyecharts
pip3.7 install -r requirements.txt
python3.7 setup.py install
编译完成之后需将pyecharts文件夹复制到python安装目录的site-packages下
usr/local/python3.7/lib/python3.7/site-packages
7.pycharm安装也行
8.注意:网上代码很多无效原因见(2)分析