How do I install opencv using pip?

后端 未结 18 767
情歌与酒
情歌与酒 2020-12-03 00:19

I need to install cv2 for a script that has been written for me. I tried pip install cv2 and pip install open_cv and got the same pro

18条回答
  •  甜味超标
    2020-12-03 00:43

    As a reference it might help someone... On Debian system I hard to do the following:

    apt-get install -y libsm6 libxext6 libxrender-dev
    pip3 install opencv-python
    python3 -c "import cv2"
    

提交回复
热议问题