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'**


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']

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值