mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-03 05:03:46 +00:00
When removing a Python interpreter underneath an existing venv, uv currently shows a not found error: ``` error: Failed to inspect Python interpreter from active virtual environment at `.venv/bin/python3` Caused by: Python interpreter not found at `/home/konsti/projects/uv/.venv/bin/python3` ``` This is unintuitive, as the file for the Python interpreter does exist, it is a broken symlink that needs to be replaced with `uv venv`. I've been encountering those occasionally, and I expect users that switch between versions a lot will, too, especially when they also use pyenv or a similar Python manager. The new error hints at this solution: ``` error: Failed to inspect Python interpreter from active virtual environment at `.venv/bin/python3` Caused by: Broken symlink at `.venv/bin/python3`, was the underlying Python interpreter removed? hint: To recreate the virtual environment, run `uv venv` ``` |
||
|---|---|---|
| .. | ||
| python | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.toml | ||
| download-metadata.json | ||
| fetch-download-metadata.py | ||