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

How does putting "uv" in front of the commands that you use simplify them?


uv init; uv add requests and you automatically get environment that can be easily shared between team members with predictable locking, with no “source .venv/bin/activate” bullshit.


Activating the venv only changes some environment variables. You can, as explained before, use the environment's Python executable directly instead. Activation does allow other tools to use the venv without having to know anything about it. The point is that you aren't then putting `uv run` in front of every command, because you don't need to have an integrator program that's aware of the venv being there.

If you had a bad experience with a different locking tool, sorry to hear it, but that has absolutely nothing to do with the venv itself nor its activation script.




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

Search: