Skip to content

Commit 16738b6

Browse files
authored
note about google colab (#535)
1 parent bacb7aa commit 16738b6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

setup/01_optional-python-setup-preferences/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
There are several ways to install Python and set up your computing environment. Here, I share my personal preferences.
66

7+
<br>
8+
9+
> [!NOTE] If you are running any of the notebooks on Google Colab and want to install the dependencies, simply run the following code in a new cell at the top of the notebook and skip the rest of this tutorial:
10+
> `pip install uv && uv pip install --system -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt`
11+
12+
The remaining sections below describe how you can manage your Python environment and packages on your local machine.
13+
714
I have been a long-time user of [Conda](https://anaconda.org/anaconda/conda) and [pip](https://pypi.org/project/pip/), but recently, the [uv](https://github.com/astral-sh/uv) package has gained significant traction as it provides a faster and more efficient way to install packages and resolve dependencies.
815

916
I recommend starting with *Option 1: Using uv* as it is the more modern approach in 2025. If you encounter problems with *Option 1*, consider *Option 2: Using Conda*.

setup/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ If you already have a Python installation on your machine, the quickest way to g
1313
pip install -r requirements.txt
1414
```
1515

16+
<br>
17+
18+
> [!NOTE] If you are running any of the notebooks on Google Colab and want to install the dependencies, simply run the following code in a new cell at the top of the notebook:
19+
> `pip install uv && uv pip install --system -r https://raw.githubusercontent.com/rasbt/LLMs-from-scratch/refs/heads/main/requirements.txt`
20+
21+
1622
&nbsp;
1723

1824
# Local Setup

0 commit comments

Comments
 (0)