How to Solve NameError: name 'SpotifyClientCredentials' is not defined -- spotipy

Solution: Import the 'SpotifyClientCredentials' module

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

from spotipy.oauth2 import SpotifyClientCredentials

 

For more information:
Python spotipy SpotifyClientCredentials