在anaconda prompt里面输入 pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
或者 在Pycharm里面 terminal终端输入
成功安装!
补充说明:在anaconda prompt里面输入
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
安装OpenCV拓展模块,包含人脸识别face等等模块