How to Solve NameError: name 'Derivative' is not defined -- sympy

Solution: Import the 'Derivative' module

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

from sympy import Derivative

 

For more information:
Python sympy Derivative