我报错的ImportError: cannot import name 'Iterable' from 'collections' (E:\python\lib\collections\_init_.py)末尾有提示出错的pycharm文件,打开。
在前几行写入:
try:
from _collections_abc import Iterable
except ImportError:
pass
如图:
要注意的是_collections_abc并不一定要跟我一样,主要根据自己代码前几行的import对象进行改动,有的可能是collections.abc
我又重新运行了一下,终于没有报错了