Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

uv doesn't redownload every dep every time. If the dep is the same, it uses a hardlink: no additional download, no additional space taken.

Pip subcommands are here to ease the transition from the old ecosystem to the new.



Edit: maybe I need to investigate this again because it isn't working for me. In a usual month I downloaded pytorch through UV maybe 100 times.

Not true, each virtual environment has its own physical copy on disk.

Since creating venvs is usually per project you have many downloads / copies.

See: https://github.com/astral-sh/uv/issues/1495


uv uses very agressive caching (https://docs.astral.sh/uv/concepts/cache/) but pytorch has many, many different combinations of packages for the same release.

It's not uncommon to have to download pytorch many times, because some lib may specify one slightly different version than another: https://docs.astral.sh/uv/guides/integration/pytorch/#config...

pytorch causes many headaches in the ecosystem, and a better handling of it is one thing their commercial offering, pyx, wants to fix: https://astral.sh/blog/introducing-pyx




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: