|
|
|
|
|
by JimDabell
462 days ago
|
|
I don’t know of a convenient way of doing it, but a clumsy way of doing it is to run this in your script: import os
print(os.environ['VIRTUAL_ENV'] + '/bin/python')
Then, e.g. in VS Code, you bring up the command palette, run Python: Select Interpreter, and enter the result. |
|
— https://docs.astral.sh/uv/reference/cli/#uv-python-find--scr...