python-opencvan使用问题

问题遇到的现象和发生背景

用的python3.9,anaconda3,opencv4.6.0.66版本,opencv-contrib-python和opencv都安装成功,代码可以跑但是报错

问题相关代码,请勿粘贴截图

import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
img = cv.imread("1.jpg")
print(img)
cv.imshow("img", img)
cv.waitKey(10000)
cv.destroyAllwindows()
print(img.shape)

运行结果及报错内容

在 'init.py' 中找不到引用 'imread'
在 'init.py' 中找不到引用 'imshow'
在 'init.py' 中找不到引用 'waitKey'
在 'init.py' 中找不到引用 'destroyAllwindows'
运行结果
AttributeError: module 'cv2' has no attribute 'destroyAllwindows'

我的解答思路和尝试过的方法

有反复重新安装过但是没有用

我想要达到的结果

不报错

W要大写,是destroyAllWindows,不是destroyAllwindows

可以查看手册:python- 接下来? 中的内容