https://blog.csdn.net/zzx2016zzx/article/details/83099583
大体按照这个教程安装的matplotlib
问题一:
第一个命令:python -m pip install -U pip setuptools 遇到问题
如下:
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.出现这个错误怎么办
参见博客解决:
https://blog.csdn.net/qq_44762986/article/details/104794147
下载安装包即可(提示:可以用Chrome打开下载网址)
问题二:
命令 :pip install PyHamcrest 遇到Warning
形如:
pip安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
参见博客解决:
https://blog.csdn.net/nahanai/article/details/96435128
但是我没用这个解决方案,因为可能网速好了,电脑自己把PyHamcrest 安装下来了
之后就如第一个博客中的第二个命令:
python -m pip install matplotlib
安装结束
测试:
在Jupyter Notebook中成功导入matplotlib这个包