pytorch入门
安装anaconda
官网下载安装,安装时加上path
准备环境
创建环境
1 | 创建环境 |
安装pytorch
复制以下命令到anaconda prompt
1 | pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 |
安装jupyter
1 | pip install jupyter |
启动
1 | jupyter notebook |
官网下载安装,安装时加上path
1 | 创建环境 |
复制以下命令到anaconda prompt
1 | pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 |
1 | pip install jupyter |
1 | jupyter notebook |