Anaconda安装torch中遇到的一些问题

  • Solving environment: failed with initial frozen solve. Retrying with flexible solve
- conda update -n base conda
- conda update --all
  • LinkError: post-link script failed for package https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge::cudatoolkit-10.2.89-hb195166_9
- # 在文件“.cudatoolkit-post-link.bat”的最后一行加上:
- set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
  • 清华源安装Pytorch
- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/
- conda config --set show_channel_urls yes
- conda install pytorch torchvision torchaudio cudatoolkit=10.2

你可能感兴趣的:(deep,learning,pytorch,anaconda)