Skip to main content
 首页 » 编程设计

python之matplotlib 和 dateutil 的弃用警告

2025年05月04日36arxive

自从我安装了最新版本的 matplotlib (1.5.1) 后,当我尝试使用 datetime 作为 X 绘制值时出现以下错误。

DeprecationWarning: Using both 'count' and 'until' is inconsistent with RFC 2445 and has been deprecated in dateutil. Future versions will raise an error.

有人遇到过这个错误,并且知道如何改正吗?

请您参考如下方法:

该问题已在 matplotlib 上修复,但未在最终版本 (>= 1.5.2) 中发布

我必须安装当前可用的版本

pip install git+https://github.com/matplotlib/matplotlib