Import Matplotlib.pyplot as plt Error KeyError: ‘pylab’

Error reporting.
python3.6 produces the following error when typing import matplotlib.pyplot as plt.

How to Solve:
import matplotlib as mpl
mpl.use(‘TkAgg’)
import matplotlib.pyplot as plt


Read More: