import sys pythonpath = sys.executable print(pythonpath)
import matplotlib print(matplotlib.matplotlib_fname()) print(matplotlib.get_cachedir())