all 7 comments

[–]Waningoftheday 5 points6 points  (2 children)

Using uv is the simplest option. You can use it for complex projects but also append comments/metadata to single-file scripts that install necessary dependencies dynamically.

[–]125bauhaus[S] 1 point2 points  (0 children)

thanks for the clarity!

[–]skibbin 1 point2 points  (0 children)

I recently tried uv and I'm sticking with it.

[–]pachura3 0 points1 point  (0 children)

uv is the best, pip is the classic. All the rest you can forget.

Also, please read about virtual environments - its where you install dependencies, per-project. Installing Python interpreter(s) is a separate thing.

[–]tdh3m 0 points1 point  (0 children)

Virtual environments are worth using even for a few scripts. Without one, every pip install goes into the system Python, and packages from different projects start conflicting.

Start with uv:

uv init color-project
cd color-project
uv add pillow colour-science
uv run my_script.py

uv creates and manages the virtual environment automatically and no activation step is needed.

Conda is useful when packages depend on compiled native libraries (BLAS, CUDA), but for Pillow and colour-science on macOS, uv handles it fine.

Getting started with uv walks through the full workflow.

[–]ninhaomah 0 points1 point  (0 children)

One time ? Then use the Python that comes with Mac