Conda Commands Flashcards

1
Q

create a conda environment

A

conda create –name yourEnvironmentName python=3.7 -y

the –name can alternatively be written –n, and the -y says yes to all questions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

remove a conda environment

A

conda remove -n yourEvironmentName –all

the –all removes all folders + files in that environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

get a list of all the environments installed on your machine

A

conda info –envs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

create your environment with requirements listed in a .yml file

A

conda env create -f yourEnvironment.yml -n yourEnvironmentName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

update your environment with requirements listed in a .yml file

A

conda env update -f yourEnvironment.yml -n yourEnvironmentName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

create a .yml file with your current environment’s requirements

A

conda env export > yourEnvironment.yml

must be in current activated environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

activate the current environment

A

conda activate yourEnvironmentName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

deactivate the current environment

A

conda deactivate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where does conda create your environments by default?

A

users/mundyreimer/anaconda3/envs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly