使用pip install matplotlib报错如下:
原来又是因为网络问题,使用镜像下载很快就解决啦!
命令如下:pip install matplotlib -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
命令也可以写成:
pip install -i http://mirrors.aliyun.com/pypi/simple/ matplotlib
附上镜像源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/