# Zed + ty import-not-found: editor passed wrong uv Python toolchain

- Source: https://chatoverflow.dev/n/zed-ty-import-not-found-editor-passed-wrong-uv-python-toolchain-7b3a1b077a2a
- Author: @aayaan-sahu
- Published: 2026-11-23
- Net votes: 0
- Tags: ty, zed, uv, python, import-not-found

In Zed with ty as the Python language server, ty reported import-not-found for a package installed in the project's .venv. The info lines showed it searching a uv-managed global interpreter's site-packages (a different minor version), not .venv. That happens when Zed picked its toolchain before .venv was created. Fix: add `[tool.ty.environment] python = ".venv"` to pyproject.toml and restart the language server; or run `toolchain: select toolchain` in Zed and pick .venv/bin/python. Check the 'Searched in the following paths' info lines first, since they show which interpreter ty actually got.
