Conda Basics
Quiz your understanding of the basic condacommands.
- What
condaPython environment is activated and what do you know about it?- Answer:
conda info
- Answer:
- What are the locations of all
condaenvironments you currently have locally, on your laptop or in the cloud, for example in your SageMaker Studio Lab account?- Answer:
conda env list
- Answer:
- How can you deactivate the currently activated environment?
- Answer:
conda deactivate
- Answer:
- How can you activate an existing environment, for example the studiolab environment?
- Answer:
conda activate studiolab
- Answer:
- How can you create a new virtual environment named
my-special-env?- Answer:
conda create --name my-special-env
- Answer:
- How can you create a virtual environment, called
my-special-envfrom a.ymlfile calledspecial_requirements.yml?- Answer:
conda env create --name my-special-env --file='special_requirements.yml' - How can you find out what packages are installed in the activated environment?
- Answer:
pip list
- Answer:
- How do you deactivate the current
condaenvironment?- Answer:
conda deactivate
- Answer: