Skip to content

Commit b1ac95e

Browse files
Merge pull request #3654 from AI-Hypercomputer:igorts/b497834280-uv-install-workaround
PiperOrigin-RevId: 899142067
2 parents 9ba1f47 + 891079d commit b1ac95e

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

docs/build_maxtext.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ This is the easiest way to get started with the latest stable version.
5353
```bash
5454
# Install uv, a fast Python package installer
5555
pip install uv
56+
# Alternatively, if pip install fails:
57+
# curl -LsSf https://astral.sh/uv/install.sh | sh
5658

5759
# Create virtual environment
5860
export VENV_NAME=<your virtual env name> # e.g., docker_venv

docs/install_maxtext.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ This is the easiest way to get started with the latest stable version.
3131
```bash
3232
# 1. Install uv, a fast Python package installer
3333
pip install uv
34+
# Alternatively, if pip install fails:
35+
# curl -LsSf https://astral.sh/uv/install.sh | sh
3436

3537
# 2. Create virtual environment
3638
uv venv --python 3.12 --seed maxtext_venv
@@ -79,6 +81,8 @@ cd maxtext
7981

8082
# 2. Create virtual environment
8183
pip install uv
84+
# Alternatively, if pip install fails:
85+
# curl -LsSf https://astral.sh/uv/install.sh | sh
8286
uv venv --python 3.12 --seed maxtext_venv
8387
source maxtext_venv/bin/activate
8488

@@ -128,7 +132,22 @@ The following sections provide detailed instructions for each step.
128132

129133
## Step 1: Install seed-env
130134

131-
First, you need to install the `seed-env` command-line tool by running `pip install seed-env uv`. Or follow the instructions in the
135+
First, you need to install the `seed-env` command-line tool. We recommend installing `uv` first and then using it to install `seed-env`:
136+
137+
```bash
138+
# Install uv
139+
pip install uv
140+
# Alternatively, if pip install fails:
141+
# curl -LsSf https://astral.sh/uv/install.sh | sh
142+
143+
uv venv --python 3.12 --seed seed_venv
144+
source seed_venv/bin/activate
145+
146+
# Install seed-env using uv
147+
uv pip install seed-env
148+
```
149+
150+
Alternatively, follow the instructions in the
132151
[seed-env repository](https://github.com/google-ml-infra/actions/tree/main/python_seed_env#install-the-seed-env-tool) if you want to build `seed-env` from source.
133152

134153
## Step 2: Find the JAX Build Commit Hash

0 commit comments

Comments
 (0)