【问题标题】:Pyinstaller Matlab deprecation warningPyinstaller Matlab 弃用警告
【发布时间】:2019-12-05 17:33:29
【问题描述】:

通过 pyinstaller 编译我的 python 脚本后:

    pyinstaller --onefile --ico=hub_blue.ico SearchSet.py

我收到警告:

D:\Users\cdoyle\AppData\Roaming\Python\Python37\sitepackages\PyInstaller\loader\pyimod03_importers.py:627:MatplotlibDeprecationWarning:

MATPLOTLIBDATA 环境变量在 Matplotlib 3.1 中已弃用,将在 3.3 中删除。 exec(字节码,模块。dict


从我的终端运行文件时不显示,仅在编译后显示。我已经在我的代码中尝试并阻止它,但似乎没有成功

import warnings
warnings.filterwarnings("ignore")

我正在导入以下库:

import os
import openpyxl as oxl
import pandas as pd
import time as t
import progress.bar as pbar

【问题讨论】:

    标签: python pyinstaller


    【解决方案1】:

    How to suppress all warnings in window of executable file generated by pyinstaller也有类似的问题

    你可以取消警告

    exe = EXE(pyz,
      a.scripts,
      [('W ignore', None, 'OPTION')],
      # ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-11
      • 2021-07-12
      • 2017-08-22
      • 2011-09-29
      • 2018-09-08
      相关资源
      最近更新 更多