Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maleldil
19 hours ago
|
parent
|
context
|
favorite
| on:
Switching from Pyenv to Uv
How do you determine where the venv is? AFAIK, uv run in script mode creates the venv in some random temporary directory.
JimDabell
17 hours 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.
reply
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: