파이썬 attributeerror: module 'collections' has no attribute 'iterator' 에러 해결 방법


파이썬 attributeerror: module 'collections' has no attribute 'iterator' 에러 해결 방법

파이썬 버전 3.10.x 이상에서 장고 프로젝트 생성 시 발생하는 에러입니다. 이 에러가 발생하는 이유는 파이썬 3.10 은 django-pydention 내에서 사용되는 collections.callable 참조가 파이썬 3.10부터 collections.abc.callable로 이동하였다고 합니다. 그리하여.. 위 프로젝트 생성 명령어인 django-admin startproject config . 명령어를 입력하시면 에러가 발생하는 겁니다. 에러 문구 AttributeError: module 'collections' has no attribute 'Iterator' 이 것은 django-pydenticon 이 파이썬 3.10을 지원해야 해결이 되는 이슈라고 합니다. 그럼 지금 상황에서 이 문제를 가..


원문링크 : 파이썬 attributeerror: module 'collections' has no attribute 'iterator' 에러 해결 방법