简体   繁体   中英

Unable to import openCV in Anaconda

I installed opencv in Anaconda - Spyder.

I am working on Ubuntu 64bit, Python 3.6 and anaconda 4.1.

I used the command below:

conda install -c conda-forge opencv=3.2.0
opencv 3.2.0 np112py36_blas_openblas_201  [blas_openblas]  conda-forge

But when I tried to import it in Spyder it throws error as:

ModuleNotFoundError: No module named 'opencv'

您应该使用import cv2而不是opencv

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM