python3.6 +opencv3.2 MatplotlibDeprecationWarning

**MatplotlibDeprecationWarning: The matplotlib.compat.subprocess module was deprecated in Matplotlib 3.0 and will be removed in 3.2. Use the python 3 standard library "subprocess" module instead. obj_type='module'**

  • python3.6 opencv3.2
    • 报错
    • 解决
      • 1.找到subprocess.py文件,报错时点击出错地址可自动跳转
      • 2.删除

The matplotlib.compat.subprocess module was deprecated in Matplotlib 3.0 and will be removed in 3.2. Use the python 3 standard library “subprocess” module instead.
obj_type=‘module’**)

python3.6 opencv3.2

报错

MatplotlibDeprecationWarning: 
The matplotlib.compat.subprocess module was deprecated in Matplotlib 3.0 and will be removed in 3.2. Use the python 3 standard library "subprocess" module instead.
obj_type='module')

解决

1.找到subprocess.py文件,报错时点击出错地址可自动跳转

在这里插入图片描述

2.删除

from matplotlib.cbook import warn_deprecated
warn_deprecated(since='3.0',
              name='matplotlib.compat.subprocess',
              #name='subprocess',
              alternative='the python 3 standard library '
                          '"subprocess" module',
              obj_type='module')

__all__ = ['Popen', 'PIPE', 'STDOUT', 'check_output', 'CalledProcessError']

你可能感兴趣的:(python,Opencv)