小编bla*_*ird的帖子

MatplotlibDeprecationWarning 与 Pyinstaller .exe

我遇到了一个警告,该警告仅在运行 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__)
Run Code Online (Sandbox Code Playgroud)

我已经尝试了这里的所有建议:Python/matplotlib:摆脱 matplotlib.mpl 警告

我也试过这个,最终结果没有任何变化: Pyinstaller exe hide warning messages

最终可执行文件中出现的 MatplotlibDeprecation 警告没有任何更改。在 Pycharm 等 IDE 中运行代码时,基线不存在警告。

使用:Python 3.7.2 Pyinstaller 3.5 Matplotlib 3.1.1

matplotlib pyinstaller python-3.x

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

matplotlib ×1

pyinstaller ×1

python-3.x ×1