首页 python正文

错误提示:Matplotlib 3.6 and will be removed two minor releases later如何解决

启明SEO python 2023-02-27 14:06:19 84 0 Matplotlib

源代码:

from tensorflow import keras
fashion_mnist=keras.datasets.fashion_mnist
(train_images,train_labels),(test_images,test_labels)=fashion_mnist.load_data()
from matplotlib import pyplot as plt
# plt.plot(train_images[0])
# plt.grid(True)

plt.imshow(train_images[0])
plt.show()

运行之后报错:

MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later.

  plt.imshow(img[0])


解决方法:

1、打开设置

错误提示:Matplotlib 3.6 and will be removed two minor releases later如何解决(一)

2、依次选择工具-》python scientific

错误提示:Matplotlib 3.6 and will be removed two minor releases later如何解决(二)

3、取消在工具窗口中显示绘图的√


评论

Python好学公众号

好文推荐

实时访客入口页面出现bd_vid=标识是什么原因

实时访客入口页面出现bd_vid=标识是什么原因

最近查看百度实时访客,总是会看到入口页面会多......

有了微信视频号,但是没有发布权限,怎么开通

有了微信视频号,但是没有发布权限,怎么开通

视频号是微信在2020年1月19号开始内测的......

如何用python抓取爱企查企业信息

如何用python抓取爱企查企业信息

前段时间,经理让我去找一些企业的信息,我平常......

服务器配置低,宝塔面板安装IIS总是安装不上怎么办

服务器配置低,宝塔面板安装IIS总是安装不上怎么办

对于一般企业网站或者博客来说,对服务器的配置......

python+selenium+Chrome options参数设置详解

python+selenium+Chrome options参数设置详解

ChromeOptions常用的行为一般有......

win10下安装MYSQL后,提示Can't connect to MySQL server on localhost (10061)相关问题解决方法

win10下安装MYSQL后,提示Can't connect to MySQL server on localhost (10061)相关问题解决方法

我遇到的问题是电脑原先安装过mysql,卸......