使用mathplot遇到了下面的问题
Bad key animation.mencoder_path in file C:\Users\zzj\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib\mpl-data\stylelib\_classic_test.mplstyle, line 509 ('animation.mencoder_path: mencoder')
You probably need to get an updated matplotlibrc file from
https://github.com/matplotlib/matplotlib/blob/v3.3.1/matplotlibrc.template
or from the matplotlib source distribution
这个问题好像不影响结果,但会出现红色的报错,在网上找了半天解决办法,最后卸载后安装
pip uninstall matplotlib
重新安装
python -m pip install -U matplotlib --prefer-binary -i https://pypi.tuna.tsinghua.edu.cn/simple
安装过程中又出现报错
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
解决方法在安装命令后面加上–use-feature=2020-resolver
成功运行没有报错
参考:https://github.com/pypa/pip/issues/8686