Create and activate a conda env in VSCode

Corin, pythoncondavscode
Back

The VSCode command palette (accessed with ⌘ + ⇧ + P) gives the user an option to create a Python environment, including a conda environment, in the current directory.

Python command palette

This environment can then be activated by referencing the path to the environment where one would usually put the environment name, e.g. conda activate myenv.

So the command to activate an environment by path might look like:

conda activate /Users/Corin/Code/MyDataProject/.conda
© Corin Faife.RSS