Alias pip
to uv pip
#4578
-
Uv doesn't include pip in the default When I enter a directory with a uv.lock, mise will create and activate a venv automatically, which is amazing. But since pip is not included, typing My least intrusive idea is that when activating a .venv, mise could also create a shell alias |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In case this helps: You can either use the [env]
_.python.venv = { path = ".venv", create = true, uv_create_args = ['--seed'] } or as a setting: https://mise.jdx.dev/lang/python.html#python.uv_venv_create_args [settings]
python.uv_venv_create_args = ['--seed'] |
Beta Was this translation helpful? Give feedback.
-
although running pip is not the same as uv pip, see here. however the aliasing is a bit hacky and i should probably just prefer the uv add command instead |
Beta Was this translation helpful? Give feedback.
In case this helps:
You can either use the
--seed
option for virtualenv: https://mise.jdx.dev/lang/python.html#automatic-virtualenv-activationor as a setting: https://mise.jdx.dev/lang/python.html#python.uv_venv_create_args