The environment is inconsistent, please check the package plan carefully The following packages are

蔚落 2023-01-06 05:30 339阅读 0赞

问题

在安装pytorch的时候,出现了下面的情况,导致程序就停在这里退出了,也不往下进行了

The following packages are causing the inconsistency:

  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64::torchaudio==0.7.0=py37
  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64::torchvision==0.8.1=py37\_cu101
    |
    Warning: 2 possible package resolutions (only showing differing packages):
  • https://mirrors.ustc.edu.cn/anaconda/pkgs/main/win-64::anaconda-custom-py37\_1
  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64::anaconda-custom-py37done

    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:

    • https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64::torchaudio==0.7.0=py37
    • https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64::torchvision==0.8.1=py37_cu101
      |
      Warning: 2 possible package resolutions (only showing differing packages):
    • https://mirrors.ustc.edu.cn/anaconda/pkgs/main/win-64::anaconda-custom-py37_1
    • https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64::anaconda-custom-py37done

解决

查了好多资料,你们也可以挨个试试

安装anaconda

conda install anaconda

我这不好使,还是出现上面的问题

更新 conda

conda update conda

执行完毕这个命令,再去安装pytorch,安装成功

  1. conda install pytorch torchvision torchaudio cudatoolkit=11.0

发表评论

表情:
评论列表 (有 0 条评论,339人围观)

还没有评论,来说两句吧...

相关阅读