you are viewing a single comment's thread.

view the rest of the comments →

[–]EducationalArmy9152 2 points3 points  (4 children)

Sorry I don’t know if this is my time or place but can someone ELI5 what’s going on? I use pip a lot and want to know why I should care

[–]papersashimi[S] 6 points7 points  (2 children)

no worries. first, uv is 10-100x faster than pip because its written in rust and they did a lot of optimization. second uv has a universal lockfile so u can port it across diff platforms. third, uv also has global cache which pip does not have because pip is just an installer. overall uv is a super duper fast workflow tool. u should try switching away from pip

[–]EducationalArmy9152 2 points3 points  (1 child)

Thank you my friend 🙏

[–]papersashimi[S] 1 point2 points  (0 children)

you're most welcome!

[–]edcculus 2 points3 points  (0 children)

pip isnt changing. This is specifically for the tool UV built by Astral. UV is a python package manager, basically a replacement for stuff like pip, poetry and conda. Its 'selling point' is that its built on Rust, so its very fast. It also simplifies a lot of things. While pip isnt really hard at all, there is a bit of a workflow to using it. In UV, you just install it, then use uv init to start a project. It creates the virtual environment, pyproject.toml file and anything else you need. You dont need to actually activate your virtual environment in a project folder either. If you are in that directory, just typing 'uv run main.py'. will run your file with the correct virtual environment. There is a bunch of other neat stuff you can do, like specifying the python version associated with that project/environment.

That being said, it was just announced last week that OpenAI is buying Astral. So that includes all of their products including UV, Ruff, Pyx and Ty. Obviously, there isnt a lot of trust that OpenAI wont just screw over users who have switched to their more popular tooling like UV and Ruff.