How to Solve NameError: name 'Faker' is not defined -- faker

Solution: Import the 'Faker' module

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

from faker import Faker

 

For more information:
Python faker Faker