I tried to use the matplotlib package via Pycharm IDE on windows 10. when I run this code:
from matplotlib import pyplot
I get the followin
If you are using fedora then first install tkinter
sudo dnf install python3-tkinter
I don't think you need to import tkinter afterwards I also suggest you to use virtualenv
$ python3 -m venv myvenv $ source myvenv/bin/activate
And add the necessary packages using pip