参考
适用于标准桌面环境的软件包(Windows、macOS、几乎所有 GNU/Linux 发行版)
- 选项 1 - 主要模块包:pip install opencv-python
- 选项 2 - 完整包(包含主模块和 contrib/extra 模块):pip install opencv-contrib-python
报错处理
- 报错1:tensorflow==2.2.0 , python=3.6.9
报错内容:
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
解决方案:
pip install opencv-python-headless