opencv安装

来源:互联网 发布:网络打印机共享设置 编辑:程序博客网 时间:2024/06/13 22:53

安装
下载地址 http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
然后pip install 手动安装
如果之前已经安装了numpy,在导入cv2的时候会出错

这里写图片描述

经过查询,发现是如下原因导致

这里写图片描述
我们采用另外一种方法,先卸载然后重新安装

pip uninstall numpypip install -i https://pypi.doubanio.com/simple/ numpy

之后便可以正常导入

这里写图片描述