본문 바로가기
Python

[python] 에러 해결: AttributeError: partially initialized module '---' has no attribute '---'

by saoh 2022. 6. 13.

 

AttributeError: partially initialized module 'requests' has no attribute 'post' (most likely due to a circular import)

 

해당 에러는 import하는 라이브러리와 파일명이 같을 때 발생하는 에러이다.

 

AttributeError

 

파일명을 바꿔주면 손쉽게 해결 가능하다.