Phthonが実行できない??
- VisualStudio Codeを使っていると、なぜかPython 機能拡張がいつまで経っても読み込めないときがありました。
Visual Studio | Marketplace
Visual Studio Code > Programming Languages > Python > Changelog
によると、2021.9.3 (20 September 2021)で、
Fix Python extension loading...
issue for users who have disabled telemetry. (#17447)
と不具合があったが、修正されているのこと、、、
- しかし、この最新バージョンにしてもまだ発生!!
機能拡張の再インストール
手順
- 問題のあるPython 機能拡張を削除
- いったん少し古いバージョンのPython 機能拡張をVS Codeのターミナルからインストール
code --install-extension ms-python.python@2021.9.1218897484
- 最新バージョンにアップデート
- この手順で、無事にPython機能拡張が有効になるようになりました。