Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve
时间: 2023-08-26 17:10:41 浏览: 325
回答: 当使用Conda时,如果出现"Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve"的问题,可以尝试以下解决方法。首先,可以尝试保持原版本的Python再安装PyTorch。在Conda环境中,可以使用以下命令创建一个新环境并安装PyTorch的CPU版本:
```
conda create -n xxx python=xxx
conda activate xxx
conda install pytorch torchvision torchaudio cpuonly -c pytorch
```
另外一种解决方法是使用pip安装PyTorch。可以使用以下命令来安装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: unsuccessful initial attempt using frozen solve. Retrying with flexible solve"的问题。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [Solving environment: failed with initial frozen solve. Retrying with flexible solve的解决方法](https://blog.csdn.net/qq_36949713/article/details/119269541)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Solving environment: failed with initial frozen solve. Retrying with flexible solve.解決方案](https://blog.csdn.net/Davidietop/article/details/122287678)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文