A memo for myself using python in the environment created by anaconda with VScode.
Anaconda and vscode are already installed, and python3.6 environment has been built with anaconda.
in setting.json
"python.pythonPath": "(python in anaconda environment.Absolute path of exe)",
Is added.
Create a bat file to enter the anaconda environment. Perform until activate with the bat file.
%windir%\system32\cmd.exe "/K" C:\Users\(username)\Anaconda3\Scripts\activate.bat C:\Users\(username)\Anaconda3\envs\(Environment name)
Next, add the following contents to setting.json.
"terminal.integrated.shell.windows": "(Absolute path of bat file)"
When you start vscode, it will be started in the activated state in the integrated terminal.
Recommended Posts