Skip to content

Commit

Permalink
fixed zergtant#22
Browse files Browse the repository at this point in the history
  • Loading branch information
zergtant committed Apr 13, 2019
1 parent 7fddf3f commit d54e39e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chapter1/1.2-pytorch-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ conda install pytorch torchvision cudatoolkit=10.0 -c pytorch


```
需要说明的一点是如果使用清华镜像,可以直接添加pytorch源镜像去掉,并且去掉`-c pytorch` 这样才能使用镜像源。
需要说明的是如果使用清华的镜像,需要去掉`-c pytorch` 这样才能使用清华源。

使用以下命令添加pytorch的清华源
```bash
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
```

验证输入python 进入
```python
Expand Down

0 comments on commit d54e39e

Please sign in to comment.