pip 安装 opencv
时间: 2023-10-23 21:13:10 浏览: 131
要使用pip安装OpenCV,您可以使用以下命令:
1. 只安装主模块:`pip install opencv-python`
2. 安装全部模块(包括主模块和社区模块):`pip install opencv-contrib-python`
3. 使用国内镜像下载(例如清华源):`pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.*** https://mirrors.aliyun.com/pypi/simple/`
请确保您的pip版本是最新的,您可以使用以下命令升级pip:`pip install --upgrade pip`
您可以参考以下链接获取更多关于OpenCV的信息:
- [OpenCV-Python的PyPI页面](https://pypi.org/project/opencv-python)
- [OpenCV官方文档](https://docs.opencv.org)<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [pip安装opencv](https://blog.csdn.net/weixin_44716392/article/details/122291954)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [pip安装opencv-python](https://blog.csdn.net/szylight2022/article/details/127903947)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文