Import Matplotlib.pyplot As Plt Error In Mac Os X 10.12.5
I'm new to Python and programming. I was trying to 'import matplotlib.pyplot as plt' in my program but Python gives me the below error: Traceback (most recent call last): File
Solution 1:
Use the following lines of code and it should work in virtual environment without any issues
import matplotlib
matplotlib.use(‘TkAgg’)
import matplotlib.pyplot as plt
Post a Comment for "Import Matplotlib.pyplot As Plt Error In Mac Os X 10.12.5"