当我尝试使用 PIP 安装库时,出现 AttributeError: module 'collections' has no attribute 'Iterable'

Sau*_*ina 8 python numpy cython cythonize

我刚刚在我的新电脑上安装了 python3 并尝试使用安装一些库(numpy,,),我得到cythoncymempip

AttributeError: module 'collections' has no attribute 'Iterable'
Run Code Online (Sandbox Code Playgroud)

但是图书馆喜欢nltk并且cytest安装得很好

Jea*_*vin 11

collections.Iterable 已弃用。\n将其替换为 collections.abc.Iterable。

\n

请参阅此答案以了解兼容性\xc2\xa0:\n /sf/answers/3778498041/

\n