4 ms·
> finally feels like Python scripts can Just Work™ without a virtualenv scavenger hunt. Hmm, last time I checked, uv installs into ~/.local/share/uv/python/cpy
by est 1y ago
> finally feels like Python scripts can Just Work™ without a virtualenv scavenger hunt.
Hmm, last time I checked, uv installs into ~/.local/share/uv/python/cpython-3.xx and can not be installed globally e.g. inside a minimal docker without any other python.
So basically it still runs in a venv.
- ndr 1y agohttps://docs.astral.sh/uv/reference/settings/#pip_system https://docs.astral.sh/uv/reference/settings/#pip_system
- est 1y agoI mean how to install `uv python install` into system-wide. No matter what I tried it's always a symlink into ~/.local
- bjornasm 1y ago>When Python is installed by uv, it will not be available globally (i.e. via the python command). Support for this feature is in preview. See Installing Python executables for details. >You can still use uv run or create and activate a virtual environment to use python directly.
- est 1y agoyes that's exactly what I meant on OP's "virtualenv scavenger hunt" statement. You still need some kind of venv, even with the power of uv.