Windows下使用Python中pip安装OpenCV OpenCV安装前需要依赖包numpy,所以需要安装numpy pip install numpy 然后就可以利用下面的代码安装OpenCV了。 pip3 install opencv-python