Using the Create Environment command
-
To create local environments in VS Code using virtual environments or Anaconda, you can follow these steps: open the Command Palette
(Ctrl+Shift+P), search for thePython: Create Environment command, and select it. -
Select
venv -
Select the project you want the venv to be attached to (if more than one project is up)
-
Select the interpreter path you want to use
print('Hello World')