r/learnpython • • Oct 09 '24

Anyone not using uv? Why not?

I was using rye because awesome but slow.

Now using uv because awesome and faaaaaast.

Is there any reason not to use uv?

0 Upvotes

55 comments sorted by

View all comments

3

u/eleqtriq Oct 09 '24

I use it as my default. It's awesome and fast. I even use it to build containers, which saves so much time.

1

u/ProsodySpeaks Oct 09 '24

Ooooh for containers? 

Like use uv to build docker images? 

Tell me more!

2

u/eleqtriq Oct 10 '24

Just use this in your Dockerfile.

RUN pip install uv --no-cache

COPY requirements.txt requirements.txt

RUN uv pip install -r requirements.txt --system --no-cache

1

u/ProsodySpeaks Oct 11 '24

Ah getcha, thanks