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?

More than 3 years have passed since last update.

vsCodeでPythonのUnresolved Import Warningを消したい

Posted at

vscodeで自作のPythonクラスモジュールにUnresolved Import Warningが出る


以下を参考にしたが、解決できなかった。
https://blog.mrym.tv/2019/08/vscode-python-unresolved-import/

念のため、

  1. .envファイルを追加
  2. .envの中身に、PYTHONPATH=codefolderを追加
  3. settings.jsonの中にpathが通っていること
  4. "python.pythonPath": "rootPath\Python\Python36\python.exe"
  5. "python.envFile": "${workspaceFolder}/.env"

英語のサイトで以下を修正したら、Warningが消えた。

vscodeのsettings.jsonの中に
python.jediEnabled=falseをtrueにする。


以上

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?