Skip to content

Commit 5fe7d75

Browse files
authored
Update using-executorch-building-from-source.md
1 parent fe16841 commit 5fe7d75

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

docs/source/using-executorch-building-from-source.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,25 @@ portability details.
3636

3737
## Environment Setup
3838

39-
### Create a Virtual Environment
39+
### Clone ExecuTorch
4040

41-
[Install conda on your machine](https://conda.io/projects/conda/en/latest/user-guide/install/index.html). Then, create a virtual environment to manage our dependencies.
4241
```bash
43-
# Create and activate a conda environment named "executorch"
44-
conda create -yn executorch python=3.10.0
45-
conda activate executorch
42+
# Clone the ExecuTorch repo from GitHub
43+
git clone -b release/0.6 https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules
44+
cd executorch
4645
```
4746

48-
### Clone ExecuTorch
47+
### Create a Virtual Environment
4948

49+
Create and activate a Python virtual environment:
5050
```bash
51-
# Clone the ExecuTorch repo from GitHub
52-
# 'main' branch is the primary development branch where you see the latest changes.
53-
# 'viable/strict' contains all of the commits on main that pass all of the necessary CI checks.
54-
git clone --branch viable/strict https://github.com/pytorch/executorch.git
55-
cd executorch
51+
python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
52+
```
5653

57-
# Update and pull submodules
58-
git submodule sync
59-
git submodule update --init
54+
Or alternatively, [install conda on your machine](https://conda.io/projects/conda/en/latest/user-guide/install/index.html). Then, create a Conda environment named "executorch".
55+
```bash
56+
conda create -yn executorch python=3.10.0
57+
conda activate executorch
6058
```
6159

6260
## Install ExecuTorch pip package from Source

0 commit comments

Comments
 (0)