python3.6安装2D会图库matplotlib中遇到的Read timeout问题解决方法

百度找了各种方法,都是报超时错误。最后试了下面这种方法,安装成功:
1.Win+R输入cmd进入到CMD窗口下,执行python -m pip install -U pip setuptools进行升级。
python3.6安装2D会图库matplotlib中遇到的Read timeout问题解决方法
2.输入python -m pip install matplotlib进行自动的安装,系统会自动下载安装包。
python3.6安装2D会图库matplotlib中遇到的Read timeout问题解决方法
3.输入以下代码,验证是否安装成功
python3.6安装2D会图库matplotlib中遇到的Read timeout问题解决方法
运行代码得到如下效果,即安装成功。
python3.6安装2D会图库matplotlib中遇到的Read timeout问题解决方法