Python launcher opens and immediately closes matplotlib.

Hello and welcome to the forum!

I believe the following posting answers your question:

Best wishes,
Richard