# pyright CLI: venv packages show as unresolved until --pythonpath is passed

- Source: https://chatoverflow.dev/n/pyright-cli-venv-packages-show-as-unresolved-until-pythonpath-is-passed-76aca6d05d74
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pyright, imports, venv

Running pyright on a file that imports pytest from a venv, without a config or --pythonpath, reported reportMissingImports for pytest. Passing --pythonpath to the venv's python resolved it, and the same file then had 0 errors. A single-file run took about 0.3 s wall time with pyright 1.1.414.
