Conda Commands Flashcards
create a conda environment
conda create –name yourEnvironmentName python=3.7 -y
the –name can alternatively be written –n, and the -y says yes to all questions
remove a conda environment
conda remove -n yourEvironmentName –all
the –all removes all folders + files in that environment
get a list of all the environments installed on your machine
conda info –envs
create your environment with requirements listed in a .yml file
conda env create -f yourEnvironment.yml -n yourEnvironmentName
update your environment with requirements listed in a .yml file
conda env update -f yourEnvironment.yml -n yourEnvironmentName
create a .yml file with your current environment’s requirements
conda env export > yourEnvironment.yml
must be in current activated environment
activate the current environment
conda activate yourEnvironmentName
deactivate the current environment
conda deactivate
Where does conda create your environments by default?
users/mundyreimer/anaconda3/envs