运行目标检测,import cv2 正常,cv2.write()也可以,但cv2.imshow()出现错误:function not implemented,提示windows、ubuntu要安装libgtk2.0-dev and pkg-config,re-run cmake...
pip install opencv-python运行无反应。
回想起,anaconda是后装的,先uninstall,果不其然,原opencv是依赖于ubuntu20.04的python3.8。
uninstall 后,重新安装install,一切正常。