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?

Poetryを利用した場合にVSCodeで依存関係がうまく効かない場合の対応

Posted at

Poertryを利用した場合のVSCodeで依存関係がうまく効かない時の対応

TL;DR

  1. Cmd + Shift + p でコマンドパレットを開く
  2. Python interpreter を選択する
  3. poetry env info --pathの値を入れる

1. Cmd + Shift + p でVSCodeのコマンドパレットを開く

2. Python Interpreterを選択する

開いたコマンドパレットに Python Select Interpreterと入力して歯車マークを押す

スクリーンショット 2024-08-14 17.46.19.png

3. poetryのvenvのpathを入力する

% poetry env info --path
でもいいけど、pbcopyの方が楽
% poetry env info --path | pbcopy

で取得したパスを打ち込む。

打ち込んでも変わらない場合は、VSCodeを一度再起動する

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?