Solving environment: failed with initial frozen solve. Retrying with flexible solve
使用conda
安装时经常遇到以下问题:
1 2 3 4 5 | $ conda install -c conda-forge opencv=4.2.0 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: / failed with repodata from current_repodata.json, will retry with next repodata source. ... |
参考conda安装环境报错:Solving environment: failed with initial frozen solve.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # 查询版本 $ conda -V # 升级 $ conda update -n base conda Collecting package metadata (current_repodata.json): done Solving environment: \ The environment is inconsistent, please check the package plan carefully The following packages are causing the inconsistency: done ## Package Plan ## environment location: /home/lab305/anaconda3 added / updated specs: - conda The following packages will be downloaded: ... ... |
升级conda
到最新版本后再更新全部应用:
1 2 3 4 5 6 7 8 9 10 | $ conda update --all Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/lab305/anaconda3/envs/pytorch1.3 The following packages will be downloaded: |
就可以继续使用conda
安装应用:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | $ conda install -c conda-forge opencv=4.2.0 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: done Collecting package metadata (repodata.json): done Solving environment: \ debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 failed with initial frozen solve. Retrying with flexible solve. Solving environment: done ## Package Plan ## environment location: /home/lab305/anaconda3/envs/pytorch1.3 added / updated specs: - opencv=4.2.0 The following packages will be downloaded: ... ... |
发表回复