Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - cv2
时间: 2023-12-10 20:36:01 浏览: 176
anaconda安装pytorch时报错PackagesNotFoundError: The following packages are not available from current cha
5星 · 资源好评率100%
出现这个错误的原因是因为cv2这个包不在当前的channels中。解决方法是使用pip install opencv-python来安装cv2包。具体操作步骤如下:
```python
pip install opencv-python
```
如果你使用的是conda环境,也可以使用以下命令来安装:
```python
conda install -c conda-forge opencv
```
阅读全文