How to Solve NameError: name 'click' is not defined

Solution: Import the 'click' module

# Add the following line to the top of your code
import click

 

For more information:
Python click