I am trying to use version 2 of the Twitter API with tweepy 3.10.0, and I got confused when following the documentation, https://docs.tweepy.org/en/latest/client.html
When I tried to set the API, like in the following example:
import tweepy
client = tweepy.Client(consumer_key=consumer_key,
consumer_secret=consumer_secret,
access_token=access_token,
access_token_secret=access_token_secret)
I got this error: AttributeError: module 'tweepy' has no attribute 'Client'
I have used Tweepy before and it worked for some tests I configured, but I need to use version 2 since I want to execute some functionalities of this version of the API.
What is my error?