conda activate D:\Programs\conda411\envs\envZhao
D:\Programs\conda411\Scripts\conda.exe install -p D:/Programs/conda411/envs/envZhao opencv-python>=4.1.2 -y
以下是错误提示:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- opencv-python[version='>=4.1.2']
Current channels:
- https://mirrors.aliyun.com/anaconda/pkgs/main/win-64
- https://mirrors.aliyun.com/anaconda/pkgs/main/noarch
- https://mirrors.aliyun.com/anaconda/pkgs/free/win-64
- https://mirrors.aliyun.com/anaconda/pkgs/free/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/simpleitk/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/simpleitk/noarch
- 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.
利用以下命令解决:
(envZhao) C:\Users\zzh_m>conda install --channel https://conda.anaconda.org/menpo opencv-python
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
Current channels:
- https://conda.anaconda.org/menpo/win-64
- https://conda.anaconda.org/menpo/noarch
- 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.
(envZhao) C:\Users\zzh_m>pip install opencv-python==4.2.0.32 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting opencv-python==4.2.0.32
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5a/af/dabae171f885ec4d9b2fe6aaf74c1d50a8d32106d840b9fb8eb0095a578d/opencv_python-4.2.0.32-cp37-cp37m-win_amd64.whl (33.0 MB)
|████████████████████████████████| 33.0 MB 939 kB/s
Requirement already satisfied: numpy>=1.14.5 in d:\programs\conda411\envs\envzhao\lib\site-packages (from opencv-python==4.2.0.32) (1.21.5)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.2.0.32
(envZhao) C:\Users\zzh_m>pip install thop -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting thop
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6c/8b/22ce44e1c71558161a8bd54471123cc796589c7ebbfc15a7e8932e522f83/thop-0.0.31.post2005241907-py3-none-any.whl (8.7 kB)
Requirement already satisfied: torch>=1.0.0 in d:\programs\conda411\envs\envzhao\lib\site-packages (from thop) (1.10.2)
Requirement already satisfied: typing_extensions in d:\programs\conda411\envs\envzhao\lib\site-packages (from torch>=1.0.0->thop) (4.1.1)
Installing collected packages: thop
Successfully installed thop-0.0.31.post2005241907
(envZhao) C:\Users\zzh_m>
(envZhao) C:\Users\zzh_m>
(envZhao) C:\Users\zzh_m>
(envZhao) C:\Users\zzh_m>
(envZhao) C:\Users\zzh_m>
**也就是在这个虚拟环境下,利用pip完成安装:
pip install opencv-python==4.2.0.32 -i https://pypi.tuna.tsinghua.edu.cn/simple
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)