Using uv and subprocess module
Using uv and subprocess module
May 29, 2026
While replacing a PowerShell script that was calling various programs to a
Python script, I ran into an issue using uv.
When using subprocess module, if you are trying to run a Python script using
uv in the subprocess.run(), it needs to match the same version of Python
the Python script.
If there is a different version, it will fail.
However, this doesn’t seem to apply if subprocess.run() is running something
that was installed using uv tool install.