feat: Add pixi environment (#534)

* feat: Add pixi environment

* Add pixi manifest pixi.toml for Linux x86, macOS arm64, Windows 64.

* ci: Update CI workflow and unify to one

* Enable workflow dispatch.
* Add concurrency limits.
* Use pixi for CI workflow.
* Unify to a single workflow for all OS tested

* feat: Add pixi lock file

* Ensure tensorflow-cpu installed on Windows

* fix package check

* fix package check

* simplification plus uv and pip runners

* some fixes to pixi and pip

* create pixi.lock

* fix pixi.lock issue

* another attempt trying to fix get_packages

* another attempt trying to fix get_packages

* clean up python_environment_check.py

* updated runner and docs

* use bash

* proper env activiation

* proper env activiation

---------

Co-authored-by: rasbt <mail@sebastianraschka.com>
This commit is contained in:
Matthew Feickert
2025-02-17 10:33:53 -07:00
committed by GitHub
parent 16738b61fd
commit a8b8eb4731
14 changed files with 13169 additions and 222 deletions

View File

@@ -116,28 +116,6 @@ uv run python setup/02_installing-python-libraries/python_environment_check.py
<img src="https://sebastianraschka.com/images/LLMs-from-scratch-images/setup/uv-setup/uv-run-check.png?1" width="700" height="auto" alt="Uv install">
Or, if you don't want to type `uv run python` ever time you execute code, manually activate the virtual environment first.
On macOS/Linux:
```bash
source .venv/bin/activate
```
On Windows (PowerShell):
```bash
.venv\Scripts\activate
```
Then, run:
```bash
python setup/02_installing-python-libraries/python_environment_check.py
```
<br>
**Launching JupyterLab**
@@ -150,19 +128,7 @@ uv run jupyter lab
**Skipping the `uv run` command**
If you find typing `uv run` cumbersome and want to run scripts via
```bash
python script.py
```
and launch JupyterLab via
```bash
juputer lab
```
instead, you can activated the environment manually.
If you find typing `uv run` cumbersome, you can manually activate the virtual environment as described below.
On macOS/Linux:
@@ -176,6 +142,20 @@ On Windows (PowerShell):
.venv\Scripts\activate
```
Then, you can run scripts via
```bash
python script.py
```
and launch JupyterLab via
```bash
juputer lab
```
&nbsp;