import cv2a = cv2.imread(图片位置)print(a.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
只能说明你没有安装正确了