Anaconda3、pytorch1.0以及cuda90在windows64下的安装

对于Anaconda,官方链接下载慢,并且会经常断掉,请科学上网,利用清华的源下载

Tsinghua Open Source Mirrormirrors.tuna.tsinghua.edu.cn《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》
《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》
《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》
《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》
《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》

里面版本众多,选择Anaconda3在windows下的x86_64的版本即可

《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》
《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》

安装时,注意勾选add path to all users

安装完成后,点击Anaconda Prompt,利用命令行安装pytorch以及cuda

《Anaconda3、pytorch1.0以及cuda90在windows64下的安装》

Anaconda默认的版本为python3.7,3.6好用一些,所以首先利用命令行安装python3.6

conda create -n python36 python=3.6

安装完成后进入python3.6的环境下

conda activate python36

添加清华源(不添加源的话下载会超级慢并且总是中断)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

下载pytorch1.0,注意,官方给出的命令是

conda install pytorch torchvision -c pytorch

但是官方默认命令会导致不能使用清华的源下载!!!!(都是坑啊)

请利用如下命令下载pytorch1.0的GPU版本以及cuda90

conda install pytorch torchvision cuda90

    原文作者:陌归
    原文地址: https://zhuanlan.zhihu.com/p/55340847
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞