cv2报错:The function is notimplemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support

import cv2 as cv

src = cv.imread('C:/Users/Lenovo/Desktop/jjw.jpg')
cv.namedWindow('input_image', cv.WINDOW_AUTOSIZE)
cv.imshow('input_image', src)
cv.waitKey(0)
cv.destroyAllWindows()

这一部分是代码,我用的是pycharm去编写cv。
安装是直接在pycharm里面下的
cv2报错:The function is notimplemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support_第1张图片
查了下,好像是这个包的问题。。。没搞懂为什么。。。
参考的是这个:传送
cv2报错:The function is notimplemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support_第2张图片
然后卸了重下,莫名其妙的,就可以使用了。。。
在这里插入图片描述
心情复杂。。。。

你可能感兴趣的:(错误解释,opencv)