[vscode][python]Interactiveで使用するPythonバージョンの変更/実行時のデフォルトバージョンの変更

python vscode interactiveのバージョン変更 Python

[vscode]Interactiveで使用するPythonバージョンの変更

Interactiveの右上(赤色で囲まれたところ)をクリック

python vscode interactiveのバージョン変更

 

実行したいバージョンをクリック

python vscode karnelの変更

 

[vscode]実行時のデフォルトバージョンの変更

[ファイル] → [ユーザー設定] → [設定]

検索窓に 「python python path」などで検索

スクロールしていくと

Python: Python Path
Path to Python, you can use a custom version of Python by modifying this setting to include the full path.

という設定があるので、使用したいバージョンのフルパスを入れる

python デフォルトの実行バージョン指定

タイトルとURLをコピーしました