1、安装依赖
pip install --upgrade setuptools pip install numpy Matplotlib -i https://mirrors.aliyun.com/pypi/simple/
2、安装opencv_python
pip install opencv-python -i https://mirrors.aliyun.com/pypi/simple/
3、测试是否安装成功
import cv2 img = cv2.imread("./Student/IMG_20180513_123556.jpg") cv2.imshow("Image",img) cv2.waitKey(0) cv2.destroyAllWindows()