OSolving environment: failed with initial frozen solve. Retrying with flexible solve.
时间: 2023-08-26 10:14:57 浏览: 180
在执行conda install时,如果出现"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: - annoy"的错误,这说明在当前的渠道中找不到所需的包。
为了解决这个问题,你可以尝试使用其他渠道或者使用pip安装。如果使用conda安装不成功,你可以尝试使用pip3安装pytorch和相应的包。具体的命令是:pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116 -i https://pypi.tuna.tsinghua.edu.cn/simple。
这样操作后,应该能够成功解决"Solving environment: failed with initial frozen solve. Retrying with flexible solve."的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [解决conda install报错Solving environment: failed with initial frozen solve. Retrying with flexible ...](https://blog.csdn.net/qq_35812205/article/details/131235496)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Solving environment: failed with initial frozen solve. Retrying with flexible solve.](https://blog.csdn.net/qq_45911550/article/details/123555167)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [安装pytorch.cuda时出现Solving environment: failed with initial frozen solve. Retrying with flexible ...](https://blog.csdn.net/shadoubuhuire/article/details/128510897)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文