opencv配置python
时间: 2023-08-25 12:19:03 浏览: 100
opencv 配置
要配置Python中的OpenCV,可以使用以下两种方式进行安装:
1. 使用pip方式安装:打开命令行,运行以下命令进行安装:
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
```
2. 使用预编译方式安装:等待片刻,OpenCV-Python安装完成后,会自动安装当前比较成熟的最新版本。可以通过以下命令查看已安装的库及其对应的版本:
```
pip list
```
在输出的列表中,可以看到`opencv-python`和`opencv-contrib-python`的版本信息。
请注意,以上步骤都是在命令行中进行的,确保已安装好Python,并且命令行当前路径在安装目录下。通过以上步骤,就可以成功配置Python中的OpenCV。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [opencv-python 开发环境的安装、配置](https://blog.csdn.net/caohongxing/article/details/120103276)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [OpenCV入门(一)Python环境的搭建](https://blog.csdn.net/qq_41600018/article/details/129269162)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [【OpenCV】Python的Opencv环境配置(可自选对应版本)](https://blog.csdn.net/weixin_44599681/article/details/118524958)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文