Your jupyter kernel is running a different version.
Examine cv2.__version__
and sys.path
to diagnose.
I installed cv2 4.5.5 into a project environment from the conda-forge channel of anaconda.org, and it worked great. Take care to make the same environment available when you run jupyter notebook
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.