1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCodeのエラー:command 'python.execInTerminal-icon' not found

1
Posted at

この記事は、もし同じエラーにあった方がいた場合に、対処法の一つを紹介するものです。

どのような状況で発生したか

OS Ubuntu 26.04.1 LTS
VSCodeバージョン 1.139.1
言語 Python3.13のuv仮想環境内

エラー内容

仮想環境内で右上の実行ボタンを押すと、「command 'python.execInTerminal-icon' not found」とエラーが表示され、いきなり実行できなくなりました。
しかし、ターミナルからは正常にPythonを呼び出すことができ、仮想環境のライブラリも利用することができる状態でした。
AIからは、仮想環境、Pythonインタプリタの問題と診断され、インタプリタの確認と仮想環境の再構築などを推奨されました。

対処法

おそらく、エクスプローラーでフォルダを指定していない状態で実行したためと考えられます。
フォルダを開いてから実行すると、正常に動作しました。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?