报错如下:Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- cv2
Current channels:
方案一
conda config --add channels conda-forge
conda config --add channels anaconda.org
- 结果:报错如下
HTTP 404 NOT FOUND for channel anaconda.org https://conda.anaconda.org/anaconda.org
The channel is not accessible or is invalid.
方案二
conda config --remove-key channels
pip install opencv-python
- 结果 :
Successfully installed opencv-python-4.9.0.80
pip install opencv-python