Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- opencv-python=4.5.1.48
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you’re
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
出现错误,无法安装opencv-python==4.5.1.48
尝试加下载镜像无法解决
最终自行去官网下载安装包解决
官网链接
https://pypi.org/project/opencv-python/4.5.1.48/#files
cp39就是python3.9版本
以此类推
我下载的是opencv_python-4.5.1.48-cp36-cp36m-win_amd64.whl
因为电脑是64位,Windows,python3.6+
大家按照实际情况下载
然后 pip install opencv_python-4.5.1.48-cp36-cp36m-win_amd64.whl
报错找不到这个包
将包放进报错路劲C:\Users\Administrator\
再次运行安装
成功
检查包的情况 conda list
搞定!!!