Uv's killer feature is making ad-hoc environments easy
1–10 of 428 posts
Re: Uv's killer feature is making ad-hoc environments easy
#2Re: Uv's killer feature is making ad-hoc environments easy
#3uvx --from 'huggingface_hub[cli]' huggingface-cli
Re: Uv's killer feature is making ad-hoc environments easy
#4Re: Uv's killer feature is making ad-hoc environments easy
#5Uv also bundles uvx command so you can run Python scripts without installing them manually: uvx --from 'huggingface_hub[cli]' huggingface-cli
Re: Uv's killer feature is making ad-hoc environments easy
#6wow, they've re-invented a tiny bit of Nix, purely legend!
Re: Uv's killer feature is making ad-hoc environments easy
#7OK, I'm convinced. I just installed uv. Thanks for sharing!
Re: Uv's killer feature is making ad-hoc environments easy
#8https://packaging.python.org/en/latest/specifications/inline...
Especially useful if the script has dependencies on packages in private repos.
Re: Uv's killer feature is making ad-hoc environments easy
#9 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
#10The 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.