conda create -n opencv python=3.7
时间: 2023-10-13 19:03:33 浏览: 109
使用conda create -n opencv python=3.7命令可以创建一个名为opencv的虚拟环境,并使用Python 3.7版本。这样可以避免在ROS系统中安装OpenCV时与Python 2.7或Python 3.7产生冲突。在创建好虚拟环境后,可以通过conda activate opencv命令激活该虚拟环境,进入opencv环境。然后可以使用pip install opencv-python==3.4.2.17命令安装所需的OpenCV库的指定版本。如果你使用的是PyCharm,还需要将环境切换到新创建的虚拟环境下,以便能够在PyCharm中使用该环境。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [ubuntu18.04 ros 使用anaconda创建虚拟环境 python3.7安装 opencv-3.4.6,TensorFlow安装,notebook](https://blog.csdn.net/qq_15204179/article/details/107444045)[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* [python虚拟环境创建、并将新的虚拟环境作用在jupyter与pycharm上](https://blog.csdn.net/cabigge_bear/article/details/129048185)[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 ]
阅读全文