Skip to content

Commit 29353c7

Browse files
committed
reduce redundancies
1 parent fc11940 commit 29353c7

File tree

1 file changed

+4
-9
lines changed
  • setup/01_optional-python-setup-preferences

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This section guides you through the Python setup and package installation proced
1818

1919
 
2020
> [!NOTE]
21-
> There are alternative ways to install Python and use `uv`. For example, you can install Python directly via `uv` and use `uv add` instead of `uv pip install` for faster package management.
21+
> There are alternative ways to install Python and use `uv`. For example, you can install Python directly via `uv` and use `uv add` instead of `uv pip install` for even faster package management.
2222
>
2323
> If you prefer the native `uv` commands, refer to the [./native-uv.md tutorial](./native-uv.md). I also recommend checking the official [`uv` documentation](https://docs.astral.sh/uv/).
2424
>
@@ -68,8 +68,6 @@ brew install [email protected]
6868

6969
Alternatively, download and run the installer from the official website: [https://www.python.org/downloads/](https://www.python.org/downloads/).
7070

71-
I recommend installing a Python version that is at least two versions older than the latest release to ensure PyTorch compatibility.
72-
7371

7472
<img src="https://sebastianraschka.com/images/LLMs-from-scratch-images/setup/uv-setup/python-version.png" width="700" height="auto" alt="Python version">
7573

@@ -79,9 +77,6 @@ I recommend installing a Python version that is at least two versions older than
7977

8078
Download and run the installer from the official website: [https://www.python.org/downloads/](https://www.python.org/downloads/).
8179

82-
I recommend installing a Python version that is at least 2 versions older than the most recent release to ensure PyTorch compatibility. For example, if the most recent version is Python 3.13, I recommend installing version 3.10 or 3.11.
83-
84-
8580

8681
&nbsp;
8782

@@ -115,11 +110,11 @@ source .venv/bin/activate
115110

116111
&nbsp;
117112
> [!NOTE]
118-
> If you are using Windows, you may have to replace the command above by `source .venv/Scripts/activate`
113+
> If you are using Windows, you may have to replace the command above by `source .venv/Scripts/activate` or `.venv/Scripts/activate`.
119114
120115

121116

122-
Note that you need to activate the virtual environment each time you start a new terminal session. For example, if you restart your terminal or computer and want to continue working on the project the next day, simply run source `.venv/bin/activate` in the project folder to reactivate your virtual environment.
117+
Note that you need to activate the virtual environment each time you start a new terminal session. For example, if you restart your terminal or computer and want to continue working on the project the next day, simply run `source .venv/bin/activate` in the project folder to reactivate your virtual environment.
123118

124119
<img src="https://sebastianraschka.com/images/LLMs-from-scratch-images/setup/uv-setup/venv-activate-1.png" width="600" height="auto" alt="Venv activated">
125120

@@ -196,7 +191,7 @@ jupyterlab
196191

197192

198193

199-
This section guides you through the Python setup and package installation procedure using `uv`.
194+
This section guides you through the Python setup and package installation procedure using [`conda`](https://www.google.com/search?client=safari&rls=en&q=conda&ie=UTF-8&oe=UTF-8) via [miniforge](https://github.com/conda-forge/miniforge).
200195

201196
In this tutorial, I am using a computer running macOS, but this workflow is similar for Linux machines and may work for other operating systems as well.
202197

0 commit comments

Comments
 (0)