본문 바로가기
IT study/06. selfStudy: code error

Python error: partially initialized module 'requests' has no attribute 'get' (most likely due to a circular import)

by Lacuna028 2021. 8. 1.

1. error 발생

 

1) 발생한 오류 내역:

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

 

2) 번역:

부분 초기화 모듈 'get'에 'get' 특성이 없습니다(대부분 순환 가져오기 때문일 수 있음).

 

 

2. 해결 방법

결론부터 말하자면 import 하려는 모듈과 같은 이름의 파이썬파일을 생성해서 생긴 문제

 

해결 방법은 import하려는 모듈과 다른 이름의 파이썬 파일로 변경하면 된다.