关于#Conda#的问题,如何解决?

Conda安装pytorch失败:如下,搞了一天了,谁知道怎么解决啊啊 试过好多方法都不行!
(torch) C:\Users\Dell>conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
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.
Collecting package metadata (repodata.json): done
Solving environment: /

说明你的初始化错误了,看下错误的具体日志。

换成清华大学的镜像试试。

可以使用pip install pytorch

可能是以下原因,望采纳!

  1. 网络连接不稳定或缓慢,可能会导致下载和安装过程中的问题;
  2. 默认的Conda源可能会有一些问题。您可以尝试添加其他源,并使用以下命令进行更新:
    conda config --add channels conda-forge
    conda update --all
    
  3. 包之间的冲突,导致无法安装PyTorch。尝试卸载已安装的包,并重新运行安装命令,使用conda create创建一个新的环境)来避免包之间的冲突。