python - 当我尝试使用 PIP 安装库时,出现 AttributeError: module 'collections' has no attribute 'Iterable'
问题描述
我刚刚在我的新电脑上安装了 python3 并尝试使用 pip 安装一些库(numpy、cython、cymem),但我得到了 AttributeError: module 'collections' has no attribute 'Iterable' 但是安装了 nltk 和 cytest 之类的库没问题。有没有人对此有解决方案
解决方案
collections.Iterable 已弃用。将其替换为 collections.abc.Iterable。
请参阅此答案以了解兼容性: https ://stackoverflow.com/a/53978543/13369176
推荐阅读
- javascript - 为什么我的 3D 模型没有使用 glTF 加载器在 three.js 中加载?
- xsl-fo - XSL-FO 到 PDF 的翻译产生了意想不到的结果
- angular - 在 Angular 2 应用程序中存储和跟踪私人聊天消息的最佳方式
- c# - 使用 Skype 机器人进行音频通话
- python - 数字取反
- javascript - 在第一次请求失败后,我如何设法提出不同的请求
- dictionary - TomTom 地图:如何使用自定义搜索栏搜索位置?
- c++ - C++中控制台代码运行时的分段错误
- javascript - 我如何将 HTML localStorage 应用于这些 innerHtml cels?
- eclipse - 如何在 Eclipse PDT 中更改工具提示背景颜色?