成功解决MatplotlibDeprecationWarning: The ‘warn’ parameter of use() is deprecated since Matplotlib 3.1 and will be removed in 3.3.

目录

解决问题

解决方法

问题描述
MatplotlibDeprecationWarning: The ‘warn’ parameter of use() is deprecated since Matplotlib 3.1 and will be removed in 3.3.

解决方法

1.通过安装新版本matplotlib
anaconda 中命令行执行:pip install -U matplotlib

2.程序中导入包代码from networkx.drawing.tests.test_pylab import plt

改为import matplotlib.pyplot as plt 导入包

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐