0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

"uv run"と"uvx"と"uv tool run"

0
Last updated at Posted at 2025-08-22

uv tool run pyrightを叩いて何もimportが読み込めてない問題に20分ほど手間取ったのでメモ
(--verboseのログひっくり返して気付いた)

結論

uv tool installでインストールしたGlobal executableでも、pyprojectに作用するもの(pyright等)はuv run.venvの内容を反映できる。
というわけで冒頭の問題はuv run pyrightで解決した。

理由

uv run.venvの内容を反映する。つまり、source activateしなくてもdependenciesなどの内容をちゃんと反映する。
uv tool run(uvx).venvの内容を反映しない。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?