Anaconda安装pytorch心历路程
由于课程作业需要,不得不安装pytorch
由于没有gpu,只能用cpu安装。
七月份的时候好不容易安装好了,八月份好像因为手欠,把anaconda的文件给删了!!!!
无奈又得从头来过!!!
一、anaconda下载
https://www.anaconda.com/products/individual
直接download
all users 其余默认
二、环境配置

系统环境配置
三、pytorch安装
打开
添加镜像
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 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
删除default


创建虚拟环境 conda create -n pytorch python=3.7
启动:conda activate pytorch
安装
https://pytorch.org/get-started/locally/

删除 -c pytorch
仅此记录自己痛苦的安装过程!


浙公网安备 33010602011771号