I have run into a warning that only appears when the pyinstaller executable is run.
...appdata\local\programs\python\python37-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py:627: MatplotlibDeprecationWarning:
The MATPLOTLIBDATA environment variable was deprecated in Matplotlib 3.1 and will be removed in 3.3.
exec(bytecode, module.__dict__)
I have tried all of the suggestions here: Python/matplotlib : getting rid of matplotlib.mpl warning
I have also tried this without any change in the end result: Pyinstaller exe hide warning messages
without any change in the MatplotlibDeprecation warnings appearing in the final executable. The warnings are baseline not present when running the code in an IDE such as Pycharm.
Using: Python 3.7.2 Pyinstaller 3.5 Matplotlib 3.1.1