2
1

More than 3 years have passed since last update.

vscodeでpythonが認識されない

Last updated at Posted at 2020-05-16

だめ

windows10上のvscodeでpythonが認識されない.はじめからはいっているのはどうもないんですが,新しく入れるとだめみたい.

症状

  1. python.orgから3.8.3 32-bitをinstall
  2. vscodeをinstall
  3. python extensionをinstall
  4. powershellでpythonを実行
  5. pathを選択

しても動きません.pathがうまく書き込まれていない.

再現法

  1. vscodeをclean unsintall
  2. python3.2.3, python laucherをコントロールパネルからuninstall

そのあと,症状どおりの操作をすると再現します.

対処法はmodify

  1. python.installを再度ダウンロードして保存.

  2. 起動したのちmodifyを選ぶ
    cap1.png
    cap2.png

  3. つぎでadd python to environment variablesをチェック.
    cap3.png
    してinstallするとvscode側で認識してくれます.

Happy coding!!

参考サイト

  1. 「Pythonが動かない…」の簡単な解決方法(Windows)
2
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
2
1