Bootstrap

python安装cv2

参考链接:

https://blog.csdn.net/weixin_39450145/article/details/104801730

https://pypi.org/project/opencv-python/

1.问题:ModuleNotFoundError: No module named 'cv2’

1

2.解决:安装cv2

  • pip install opencv-python (如果只用主模块,使用这个命令安装)
  • pip install opencv-contrib-python (如果需要用主模块和contrib模块,使用这个命令安装),推荐安装这个。

2

3.参考官网(https://pypi.org/project/opencv-python/)

3

;