【发布时间】:2019-11-04 04:27:15
【问题描述】:
我使用 pyinstaller 从 python 文件生成了一个可执行文件。该程序按应有的方式运行,但在我想隐藏的窗口中显示了此警告消息。
当 python 文件在 IDE 中运行时,以下行会抑制所有警告消息。
warnings.filterwarnings('ignore')
但是在可执行文件的窗口中,却显示了这个警告:
\venv\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 pyinstaller