Conda environments

Posted on September 13, 2021



Similar to Python’s venv module, Conda can also create virtual environments but these environments support languages other than Python.

# Create a python environment named `myenv`, can also use `-n` for `--name`
$ conda create --name myenv python

# Activate the `myenv` environment
$ conda activate myenv

# Command prompt for the activated environment
(myenv) $

# Deactivate the current environment
(myenv) $ conda deactivate

# Remove an environment named `myenv`, can also use `-n` for `--name`
$ conda env remove --name myenv


Back


Gavin Wiggins © 2021