Live data from Hacker News

Uv's killer feature is making ad-hoc environments easy

valatka.dev

1–10 of 428 posts

Re: Uv's killer feature is making ad-hoc environments easy

#6

wow, they've re-invented a tiny bit of Nix, purely legend!

A few months ago I saw someone hacking the linker to get mundane package management working in Nix. It was bubbling up to the top of my "to try" list and that bumped it back down. It'll be good eventually, I'm sure.

Re: Uv's killer feature is making ad-hoc environments easy

#9
The activation of the virtualenv is unnecessary (one can execute pip/python directly from it), and the configuring of your local pyenv interpreter is also unnecessary, it can create a virtual environment with one directly:

  pyenv virtualenv python3.12 .venv
  .venv/bin/python -m pip install pandas
  .venv/bin/python
Not quite one command, but a bit more streamlined; I guess.

Re: Uv's killer feature is making ad-hoc environments easy

#10
post #9

The activation of the virtualenv is unnecessary (one can execute pip/python directly from it), and the configuring of your local pyenv interpreter is also unnecessary, it can create a virtual environment with one directly: pyenv virtualenv python3.12 .venv .venv/bin/python -m pip install pandas .venv/bin/python Not quite one command, but a bit more streamlined; I guess.

Indeed, you're right ;).
Post reply on HN