admin 發表於 2023-4-3 09:08:27

The compare_versions function was deprecated in Matplotlib 3.2 and will be re...

python中出现警告
MatplotlibDeprecationWarning:
The compare_versions function was deprecated in Matplotlib 3.2 and will be removed two minor releases later.

上述警告的意思是: matplotlib 3.2中已被弃用,将在两个较小的版本之后删除。如果还想用那么就不能升级版本
(1)
可以用
import warnings
warnings.filterwarnings(‘ignore’)
忽略显示
(2)
右上角文件(file)—— 设置(setting)——工具(tools)—— Python Scientific —— 取消勾选

頁: [1]
查看完整版本: The compare_versions function was deprecated in Matplotlib 3.2 and will be re...