←back to thread

Using uv with PyTorch

(docs.astral.sh)
167 points charliermarsh | 1 comments | | HN request time: 0s | source
Show context
mrbonner ◴[] No.42190760[source]
Does uv support global Python install now? I need something like Mise for this.
replies(3): >>42191001 #>>42192371 #>>42194345 #
shlomo_z ◴[] No.42191001[source]
uv python install 3.xx
replies(1): >>42191096 #
imjonse ◴[] No.42191096[source]
That is not global. From the uv getting started docs:

"When Python is installed by uv, it will not be available globally (i.e. via the python command). Support for this feature is planned for a future release. In the meantime, use uv run or create and activate a virtual environment to use python directly."

So yes, one needs mise/asdf/pyenv or similar for global installs for now.

replies(1): >>42193327 #
1. JimDabell ◴[] No.42193327[source]
You could always just `alias python="uv run python"`