Hacker News new | ask | show | jobs
by moltar 461 days ago
I wasn’t able to figure how to make a uv installed python version a global when “python” is called, at least in the current shell, as I need it in CI.
1 comments

That feature's in preview now. You can run it like:

  uv python install --preview --default 3.13
and then you get Python 3.13 whenever you run `python` outside of an environment that declares something else.
This is great news. I had hacked together some bash and fish scripts to mostly do this but they still had some rough edges. I missed that uv now had this ready for preview
I just found that a couple weeks ago.

I'm an end user, too. I don't have anything to do with uv development. I stumbled across it in a GitHub issue or something and passed along the info.

Thank you!! Will try it tomorrow.
You bet. I was so happy to find that!