uv pip install --directory
not working when called with a Python subprocess
#10013
Labels
question
Asking for clarification or support
Hello
Sample repo? Yes! https://github.com/djalan/uv-pip-install-subprocess
Here is the problem:
As per your documentation @ https://docs.astral.sh/uv/pip/environments/#discovery-of-python-environments
This becomes a problem when you are calling
uv
using asubprocess.Popen
from a Python project that is using a virtual env.It won't take into consideration the
--directory
switch and changingcwd
current working directory forsubprocess.Popen
does not resolve the issue.On the other hand,
uv venv
honors the--directory
switch and creates the .venv at the desired location.I would fix the problem and amend the documentation and give
--directory
the biggest priority.--directory
switch on the command lineThe text was updated successfully, but these errors were encountered: