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

> Among many things it’s improved, scripting with python finally just works without the pain of some odd env issue.

From what I can tell uv doesn’t (unlike poetry) assist with venvs what so ever.

What is a trivial «poetry run» becomes the same venv-horrors of Python fame when I use uv and «uv run».

Based on that, your comment strikes me as the polar opposite of my experience (which is why I still resort to poetry).

Care to outline how you use v to solve venv-issues, since from what I can tell, uv explicitly doesn’t?

I’m very curious.



I use uv in my shebang and “uv run script.py”. Never run into any issues.

Here’s a couple links to discussions about it on HN:

https://news.ycombinator.com/item?id=42198256

https://news.ycombinator.com/item?id=42855258


So if you've imported pytest and want to run it, you can’t just «uv run pytes», but have to create a script with a uv-shebang which runs pytest for you?

And how does that work on Windows, which to my knowledge doesn’t even support shebangs?




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

Search: