OK, I think I’ve been able to (with the help of many others) get this figured out. There are a few things that happened to get me where I’m at, but mostly it was me
I’m going to work on a TIL that I’ll post later today, but tl;dr uv
doesn’t install pip by default when creating a venv and that was a problem. Thanks to everyone that helped me figure this out!
[#]Python
https://mastodon.social/@ryancheley/113420509533590631
=> More informations about this toot | More toots from ryancheley@mastodon.social
@ryancheley I hit that uv issue also and found it very confusing. This definitely seems like a worthwhile write up.
=> More informations about this toot | More toots from treyhunner@mastodon.social
@treyhunner @ryancheley It feels like more of a feature than a bug.
I assume uv pip
works, but not pip. One solution might be to alias pip to uv pip
.
If I were on a bare metal system, I would not want or expect installing uv
to include pip
.
=> More informations about this toot | More toots from webology@mastodon.social
@webology @treyhunner @ryancheley
One thing that I am trying to put in my mind since I moved to UV is that every command will be prefixed by uv even the python interpreter.
=> More informations about this toot | More toots from bruno@rocha.social
@bruno @treyhunner @ryancheley I have kind of approached it backwards by slowly adding uv to existig projects.
My first two use cases were replacing pip-tools + compile and running uv tool pre-commit
were natural fits for me before using it for uv pip install
.
Now I'm flirting with workspaces (I can not get them to work) and uv python install (works great)
=> More informations about this toot | More toots from webology@mastodon.social
@webology @treyhunner agreed and yes, uv pip would work. This was a case of me making some assumptions, and while I was working on a thing getting distracted for an hour before coming back to it and getting pretty tripped up. A good learning experience for sure
=> More informations about this toot | More toots from ryancheley@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini