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

急にwindows側のpythonを使おうとしてインタープリタを選択しようとしてもファイルが認識されない

Last updated at Posted at 2025-03-30

表題の通り、linux側のpythonを選択しようとしてもwindows側のpythonを使おうとしてファイルが認識されないということが起こったので備忘録として記述しておく。

原因

結論から言うとVS codeがWindows側で動作していたから。

解決策

要はVS codeをlinux側で動作させばよいということになる。

  1. 開きたいディレクトリに移動したらcode .で開くか
  2. コマンドパレット(Ctrl+Shift+P)で「Remote-WSL: New Window」を実行し、WSL の Ubuntu 環境内で新しいウィンドウを開く。
0
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
0
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?