←back to thread

741 points chirau | 2 comments | | HN request time: 0.534s | source
Show context
6ak74rfy ◴[] No.44358674[source]
UV is fast, like FAST. Plus, it removes the need for pyenv (for managing different Python versions) and pip for me. Plus, no need to activate env or anything, `uv run ...` automatically runs your code through the env.

It's a nice software.

replies(1): >>44358815 #
nomel ◴[] No.44358815[source]
> Plus, it removes the need for pyenv

I don't see a way to change current and global versions of python/venvs to run scripts, so that when I type "python" it uses that, without making an alias.

replies(3): >>44359039 #>>44360892 #>>44361369 #
1. hashinova ◴[] No.44361369[source]
> I don't see a way to change current and global versions of python

You really shouldn't be doing this. Utilities on your host rely on the system python being stable, unchanged, pinned to a very specific python version; also with exact versions for dependencies.

For example in fedora/rhel, changing the default platform-python will prevent you from using yum/dnf to apply system updates.

replies(1): >>44371451 #
2. nomel ◴[] No.44371451[source]
Utilities on my host that require system python won't use /usr/bin/env python.