(1) 使用DSW安裝cpu 版的pytorch和pyg
在Pytorch 官網(wǎng);
!pip 的方法安裝?!pip install torch 安裝torch
在anaconda 里面安裝pytorch
http://www.reibang.com/p/3bed91f4f3ad
1.已經(jīng)安裝好Anaconda
2.搜索cmd>>>打開Anaconda Prompt
3.添加清華鏡像:
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
4.添加Pytorch鏡像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64/
5.安裝pytorch:https://pytorch.org 到官網(wǎng)選一個(gè)版本
conda install pytorch torchvision torchaudio cpuonly -c pytorch
pip版本 cpu
pip3 install torch torchvision torchaudio
檢查安裝情況:
import torch?