How to Solve NameError: name 'relativedelta' is not defined -- dateutil

Solution: Import the 'relativedelta' module

To Solve the error, add the following line to the top of your code.

from dateutil.relativedelta import relativedelta

 

For more information:
Python dateutil relativedelta