Switch from pip to uv (#529)

* Replace pip by more modern uv

* uv tests

* update yaml

* update yaml

* update yaml

* update flake8

* update windows commands

* fix windows test

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix

* windows fix
This commit is contained in:
Sebastian Raschka
2025-02-15 13:13:13 -06:00
committed by GitHub
parent 074a6efb33
commit 88fd849b88
10 changed files with 250 additions and 38 deletions

View File

@@ -4,6 +4,13 @@ This document provides more information on double-checking your installed Python
I used the following libraries listed [here](https://github.com/rasbt/LLMs-from-scratch/blob/main/requirements.txt) for this book. Newer versions of these libraries are likely compatible as well. However, if you experience any problems with the code, you can try these library versions as a fallback.
> [!NOTE]
> If you you are using `uv` as described in [Option 1: Using uv](../01_optional-python-setup-preferences/README.md), you can replace `pip` via `pip uv` in the commands below. For example, `pip install -r requirements.txt` becomes `uv pip install -r requirements.txt`
To install these requirements most conveniently, you can use the `requirements.txt` file in the root directory for this code repository and execute the following command:
```bash
@@ -38,10 +45,7 @@ In this case, you may want to use `watermark` to check if you opened the Jupyter
<img src="https://sebastianraschka.com/images/LLMs-from-scratch-images/setup/02_installing-python-libraries/watermark.jpg" width="350px">
<br>
<br>
&nbsp;
## Installing PyTorch
PyTorch can be installed just like any other Python library or package using pip. For example: