新的 Python 3.7 安装会导致集合 DeprecationWarning:

Bil*_*ton 5 collections python-3.x scikit-learn deprecation-warning

我刚刚在我的 Mac(High Sierra v 10.13.2)上安装了 Python 3.7。当我运行使用 sklearn 的代码时,我收到以下错误消息:

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sklearn/feature_extraction/text.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping, defaultdict
Run Code Online (Sandbox Code Playgroud)

有人知道如何消除这种弃用警告吗?我知道我可以要求 Python 不要显示弃用警告。我想删除弃用警告的原因,而不仅仅是删除警告本身。我想了解的是,我是否可以更改 SKLearn 对集合的使用,或者我是否需要等待 sklearn 完成?