Trying to plot in PyCharm

trying to do a simple plt.show() in a PyCharm project/file, i am getting a tkinter error, which is not found . simple code:

import pandas as pd
import numpy as np
import matplotlib
import customtkinter

matplotlib.use(‘TkAgg’)
import matplotlib.pyplot as plt

data = np.arange(10)
print(data)

plt.plot(data)

plt.show()


anyone seen this problem?

Well, you didn’t post what the error was, and we can’t guess…