pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install matplotlib -i https://mirrors.aliyun.com/pypi/simple
#添加国内源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
#安装matplotlib
conda install matplotlib