使用前请先通过pip
包管理工具安装numpy
matplotlib
这两个库依赖:
pip install numpy pip install matplotlib
若安装过程因网络问题很难成功,可尝试更换至国内镜像源进行安装,如使用清华镜像源:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
python ./GroupedBarChart.py