成功解决MatplotlibDeprecationWarning: The ‘warn‘ parameter of use() is deprecated since Matplotlib 3.1

成功解决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 导入包

你可能感兴趣的:(pytorch,深度学习,神经网络)