1. 安装方式概览
通过以下方式可快速开始使用 OpenCV Python:
方式一:使用
pip
安装(推荐)
✅ 适用于大多数 Python 环境pip install opencv-python
方式二:从源码编译
🛠️ 需要 CMake 和编译工具链
查看详细编译指南方式三:使用 Conda 安装
🐍 适合科学计算环境conda install -c conda-forge opencv
2. 系统兼容性
操作系统 | 安装建议 |
---|---|
Windows | Windows_Installation |
Linux | Ubuntu_Installation |
macOS | macOS_Installation |
3. 常见问题
🔍 遇到安装问题?请参考:
安装问题排查指南