0
0
MLOpsdevops~10 mins

Environment management with conda and pip in MLOps - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new conda environment named 'myenv'.

MLOps
conda create --name [1] python=3.8
Drag options to blanks, or click blank then click option'
Amyenv
Benv
Cbase
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'base' which is the default environment, not a new one.
Forgetting to specify the environment name.
2fill in blank
medium

Complete the code to activate the conda environment named 'dataenv'.

MLOps
conda [1] dataenv
Drag options to blanks, or click blank then click option'
Ainstall
Bactivate
Ccreate
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' which makes a new environment instead of activating.
Using 'install' which is for packages, not environments.
3fill in blank
hard

Fix the error in the command to install the package 'numpy' using pip inside an active conda environment.

MLOps
pip [1] numpy
Drag options to blanks, or click blank then click option'
Aupdate
Bremove
Clist
Dinstall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' which deletes packages instead of adding.
Using 'list' which only shows installed packages.
4fill in blank
hard

Fill both blanks to create a conda environment from a YAML file named 'env.yaml'.

MLOps
conda [1] --file [2]
Drag options to blanks, or click blank then click option'
Aenv create
Binstall
Cenv.yaml
Dupdate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' which is for packages, not environments.
Forgetting to specify the YAML file.
5fill in blank
hard

Fill all three blanks to export the current conda environment named 'projenv' to a YAML file called 'projenv.yaml'.

MLOps
conda env [1] [2] projenv [3] projenv.yaml
Drag options to blanks, or click blank then click option'
Aexport
B--name
C--file
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' which only shows environments.
Forgetting to specify the environment name or output file.