To apply the virtual environment created by anaconda to VScode, open the working folder with VScode and I thought I should type ``` conda activate virtual environment name` `` in the VScode terminal.
① Display and copy the path of the virtual environment you want to apply with `` `conda info -e``` with anaconda prompt (In this case, ** C: \ Users \ hoge \ Anaconda3 \ envs \ hogen **) ② VS code: Upper left file → Basic settings → Settings ③ Search by python.pythonpath (You can do it just by hitting python.python) ④ Paste the path 1 (C: \ Users \ hoge \ Anaconda3 \ envs \ hogen) I was able to do it! I thought, in the lower left Is displayed ... ⑤ Click this yellow sentence & make Python of the virtual environment to which you want to apply interpreter
It's done!
It seems that it can also be applied to workspaces A workspace is a space where you can put multiple folders together, so to speak, the boss of a folder. This is detailed Apply to workspace
Recommended Posts