I am pulling some tweet data from Twitter and have some code that works fine for me in Jupyter notebook. When I move this into my flask app.py file here the line: The line: client = tweepy.Client(bearer_token=bearer_token)
gives me the error: produces the error AttributeError: module 'tweepy' has no attribute 'Client'
Everything I have read suggests it is the version of Tweepy I am using, but in Jupyter I am running 4.12.1 and here I have added tweepy==4.12.1 to my requirements file, so I'm not sure what I am missing there, or what the problem could be if not the version.