LoginSignup
0
3

More than 3 years have passed since last update.

【Python】Linter pylint is not installedと表示される【VSCode】

Posted at

事象

VScodeでPythonを書いているときに、右下に「Linter pylint is not installed」と表示される。
調べてみるとpylintというコードチェックプラグインをインストールする必要があるとのこと。

実施したこと

「install」ボタンを押してみると...

pip install -U pylint & was unexpected at this time.

と表示され、インストールできない。
ターミナルからのインストールを試してみる。

pip install pylint
'pip' is not recognized as an internal or external command,
operable program or batch file.

pipコマンドが使えないよう。環境変数を設定してみる。

where python

でpythonのインストールされているパスをコピーする。

「環境変数を編集」で検索し、表示する。
ユーザの環境変数のPathをダブルクリック。
「新規」⇒さっきコピーしたパスを貼り付け。
末尾の「python.exe」を削除し、「Scripts」に変更しOKにする。

再度以下コマンドを実施。

pip install pylint

無事インストール出来ました!!

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