How to Solve NameError: name 'InstalledAppFlow' is not defined -- google_auth_oauthlib
Solution: Import the 'InstalledAppFlow' module
To Solve the error, add the following line to the top of your code.
from google_auth_oauthlib.flow import InstalledAppFlow
For more information:
Python google_auth_oauthlib InstalledAppFlow