PyCharm出现module 'matplotlib' has no attribute 'verbose'解决方案

时间:2023-03-09 02:24:15
PyCharm出现module 'matplotlib' has no attribute 'verbose'解决方案

其实不是你安装错了,也不是你代码问题,这就是PyCharm的锅!

虽然有三种解法办法,我觉得还是改IDE配置是最佳方法

PyCharm出现module 'matplotlib' has no attribute 'verbose'解决方案

把这个钩去掉就行了......

# -*- coding: utf-8 -*-
__author__ = '樱花落舞' from PIL import Image
import os
from pylab import * img = Image.open('1.jpg')
img.show() im = array(Image.open('1.jpg'))
imshow(im) x = [100,100,400,400]
y = [200,500,200,500] plot(x,y,'r*') plot(x[:2],y[:2]) title("") show()

PyCharm出现module 'matplotlib' has no attribute 'verbose'解决方案