Including the line import matplotlib.pyplot as plt
in any file makes any python program exit immediately without any error message. Trying to import it in the python shell forces the shell to exit.
I know this actually happened to me not long ago and the issue was a faulty matplotlib installation. I'm on Windows and I'm using the miniconda/anaconda3 distribution. I'm on a virtualenv I made called py_summer
. I tried running both conda uninstall matplotlib
then conda install -c conda-forge matplotlib
from the anaconda website with the virtualenv active. This didn't change anything. I still assume a possibly corrupted installation, I just don't know what else I can do at this point.
Edit: If I deactivate the virtualenv, the matplotlib instruction works...
I don't want to discard the entire py_summer
env I have but I already tried uninstalling matplotlib then reinstalling it... What could I do? Should I maybe just uninstall matplotlib on my whole machine outside of the env?