No module named 'cv2.cv2'

前端 未结 5 776
刺人心
刺人心 2021-01-18 17:30

I am a beginner at computers. I use Anaconda python 3.6 in windows 10. I have already installed OpenCV using this command:

         


        
5条回答
  •  佛祖请我去吃肉
    2021-01-18 17:51

    Based on python opencv link: https://pypi.org/project/opencv-python/

    Step 1: Uninstall the opencv first if you have previous/other manually installed (= not installed via pip) version of OpenCV installed (e.g. cv2 module in the root of Python's site-packages)):

    pip uninstall opencv-python

    Step 2: Install the package afresh

    pip install opencv-python

    Hope that works!

提交回复
热议问题