6
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vscodeとanacondaの連携に関する自分用メモ

Posted at

vscodeとanacondaの連携メモ

VScodeでanacondaで作成した環境のpythonを使用する自分用メモ.

anaconda,vscodeはインストール済み,anacondaでpython3.6環境を構築済み.

vscodeでデバッグ可能にする

setting.jsonに

"python.pythonPath": "(anaconda環境のpython.exeの絶対パス)",

を追加する.

統合ターミナルでanacondaのpythonを使う

anaconda環境に入るbatファイルを作成.batファイルでactivateまで行う.

%windir%\system32\cmd.exe "/K" C:\Users\(ユーザー名)\Anaconda3\Scripts\activate.bat C:\Users\(ユーザー名)\Anaconda3\envs\(環境名)

次にsetting.jsonに以下の内容を追加する.

"terminal.integrated.shell.windows": "(batファイルの絶対パス)"

vscodeを起動すると統合ターミナルではactivateされた状態で起動される.

6
11
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
6
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?