데이터 분석/Python

AttributeError: module 'tweepy' has no attribute 'StreamListener'

catloaf 2021. 10. 9. 18:02

from konlpy.tag import Okt

 

NLP 자연어처리 예제 진행하는데 Konlpy import에서 아래와 같은 오류가 났다.

 

AttributeError: module 'tweepy' has no attribute 'StreamListener'

 

 

해결방법

 

import tweepy
tweepy.__version__

 

 

만일 3.7.0~3.10.0 버전이 아닐 경우, 아래의 코드로 tweepy 버전을 바꿔준다

 

!pip install tweepy==3.10.0

 

-> 결과는 잘 실행됨

반응형
댓글수0