Skip to content

Commit 7861101

Browse files
committed
Update ubuntu machine instructions
1 parent 4561333 commit 7861101

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/install-guides/pytorch.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ PyTorch requires Python 3, and this can be installed with `pip`.
4949
For Ubuntu, run:
5050

5151
```bash
52+
sudo apt update
5253
sudo apt install python-is-python3 python3-pip python3-venv -y
5354
```
5455

@@ -71,7 +72,7 @@ source venv/bin/activate
7172
In your active virtual environment, install PyTorch:
7273

7374
```bash
74-
sudo pip install torch torchvision torchaudio
75+
pip install torch torchvision torchaudio
7576
```
7677

7778
## How do I get started with PyTorch?

0 commit comments

Comments
 (0)