django-admin报错ImportError: cannot import name ‘Iterator‘ from ‘collections‘

django-admin报错ImportError: cannot import name ‘Iterator’ from ‘collections’(C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\collections_init_.py)

原因因为python3.10版本,库collections 停用了,其中就包含了 pygal._compat.py 中的 from collections import Iterator;可以换个低版本python。

猜你喜欢

转载自blog.csdn.net/qq_22938603/article/details/124452105