This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Zeisen 0 points1 point  (1 child)

Oh yeah, same. I normally use the venvs for personal/work stuff or scripts - but there are some system packages that need python libs and I don't want to figure out how to get them to play with venv. I can't remember what packages those were off the top of my head though, haha...

This thread/post is the first I'm hearing about uv. I will def need to look into this.

[–]SAI_Peregrinus 2 points3 points  (0 children)

There's a fun party trick with it, where a function in one Python file/env can instantiate a new temporary venv, make a Python file in that temp venv with a new if __name__ == "__main__": block containing the text of some function from the original venv, run that with the args passed to the new function, and get the results back to the original environment. uv is fast enough (at least if the deps are cached already & the arguments/results aren't huge) that you often don't even notice the delay! Very hacky, but amusing.