Switching from Pyenv to Uv
bluesock.org
Switching from Pyenv to Uv
1–10 of 239 posts
Re: Switching from Pyenv to Uv
#2I'm very comfortable with pyenv, but am extremely open to new stuff
Re: Switching from Pyenv to Uv
#3has anybody doing complex projects achiever success with uv completely replacing pyenv, and had mostly pros and few or no cons? I'm very comfortable with pyenv, but am extremely open to new stuff
Re: Switching from Pyenv to Uv
#4I just want to create a monorepo with python that's purely for making libraries (no server / apps).
And is it normal to have a venv for each library package you're building in a uv monorepo?
Re: Switching from Pyenv to Uv
#5Is there a guide for how to use uv if you're a JS dev coming from pnpm? I just want to create a monorepo with python that's purely for making libraries (no server / apps). And is it normal to have a venv for each library package you're building in a uv monorepo?
There is not much to know:
- uv python install if you want a particular version of python to be installed
- uv init --vcs none [--python ] in each directory to initialize the python project
- uv add [--dev] to add libraries to your venv
- uv run when you want to run a command in the venv
That's it, really. Any bonus can be learned later.
Re: Switching from Pyenv to Uv
#6Re: Switching from Pyenv to Uv
#7has anybody doing complex projects achiever success with uv completely replacing pyenv, and had mostly pros and few or no cons? I'm very comfortable with pyenv, but am extremely open to new stuff
Re: Switching from Pyenv to Uv
#8Is there a guide for how to use uv if you're a JS dev coming from pnpm? I just want to create a monorepo with python that's purely for making libraries (no server / apps). And is it normal to have a venv for each library package you're building in a uv monorepo?
If the libraries are meant to be used together, you can get away with one venv. If they should be decoupled, then one venv per lib is better. There is not much to know: - uv python install if you want a particular version of python to be installed - uv init --vcs none [--python ] in each directory to initialize the python project - uv add [--dev] to add libraries to your venv - uv run when you want to run a command i…
Re: Switching from Pyenv to Uv
#9has anybody doing complex projects achiever success with uv completely replacing pyenv, and had mostly pros and few or no cons? I'm very comfortable with pyenv, but am extremely open to new stuff
If you are comfortable with `pyenv`, the switch to `uv` is basically a walk in the park. The benefit is the speed + the predictable dependencies resolution.