pyplot will output tkinter.TclError: no display name and no $DISPLAY environment variable on headless server. Changing the import part of plot_utils.py from
from matplotlib import pyplot as plt
to
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
pyplot
will outputtkinter.TclError: no display name and no $DISPLAY environment variable
on headless server. Changing the import part of plot_utils.py fromfrom matplotlib import pyplot as plt
towill solve this error.