プログラミング

VSCodeでPythonの実行バージョンの変え方

-プログラミング

はじめに

MacでPyenvなどで複数バージョンを入れたときに実行時のPythonバージョンを指定する方法をメモ

手順

Pythonを選択

すべてのコマンドを表示

Shift+Command+P or F1
ですべてのコマンドを表示
f:id:sya_mu-neco:20200405130820p:plain:w400

Pythonのバージョンを選択

python select interpreter
と入力し
Python Select:Interpreter
を選択
f:id:sya_mu-neco:20200405131656p:plain:w400
使いたいPythonを選択
f:id:sya_mu-neco:20200405131751p:plain:w400

-プログラミング