ModuleNotFoundError: No module named 'auth0.v3' when running a python script

Problem statement

We received the following error when running a python script:

>> python3
Traceback (most recent call last):
File "/", line 7, in <module>
from tools import Config, get_auth0
File "", line 4, in <module>
from auth0.v3 import Auth0Error
ModuleNotFoundError: No module named 'auth0.v3'


The issue It’s with the 4.0 version of the auth0-python library. The script provided is not compatible.

To solve this error, run below scripts

>pip install auth0-python==3.24.1