File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ https://pytorch.org/get-started/previous-versions/
7
7
```
8
8
pip install torch torchvision torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple
9
9
```
10
- #### 指定torch, cuda版本 (preffered)
10
+ #### 指定版本 (preffered)
11
11
创建名为pytorch310的虚拟环境
12
12
```
13
13
conda create -n pytorch310 python==3.10
@@ -32,9 +32,13 @@ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/m
32
32
conda config --set show_channel_urls yes
33
33
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
34
34
```
35
- 安装并指定cuda版本
35
+ #### 安装最新版
36
+ ```
37
+ conda install pytorch torchvision torchaudio cudatoolkit=10.2
38
+ ```
39
+ #### 指定版本
36
40
```
37
- conda install pytorch torchvision cudatoolkit=10.2
41
+ conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=10.2
38
42
```
39
43
40
44
## Tutorial
You can’t perform that action at this time.
0 commit comments