【发布时间】:2019-12-22 08:23:20
【问题描述】:
我遇到了仅在运行 pyinstaller 可执行文件时出现的警告。
...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__)
我已经尝试了这里的所有建议:Python/matplotlib : getting rid of matplotlib.mpl warning
我也试过这个,最终结果没有任何改变: Pyinstaller exe hide warning messages
最终可执行文件中出现的 MatplotlibDeprecation 警告没有任何变化。在 Pycharm 等 IDE 中运行代码时,警告是基线不存在的。
使用: Python 3.7.2 安装程序 3.5 Matplotlib 3.1.1
【问题讨论】:
标签: python-3.x matplotlib pyinstaller