0
0
MLOpsdevops~5 mins

Environment management with conda and pip in MLOps - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of using conda for environment management?
Conda helps create isolated environments to keep project dependencies separate, avoiding conflicts between packages.
Click to reveal answer
beginner
How does pip differ from conda in managing packages?
Pip installs Python packages from the Python Package Index (PyPI), while conda manages packages and environments for multiple languages, including Python.
Click to reveal answer
beginner
What command creates a new conda environment named myenv with Python 3.9?
conda create -n myenv python=3.9
Click to reveal answer
beginner
How do you activate a conda environment called myenv?
conda activate myenv
Click to reveal answer
beginner
How can you install a package named requests inside an active conda environment using pip?
pip install requests
Click to reveal answer
Which command lists all conda environments on your system?
Apip env list
Bpip list
Cconda env list
Dconda list env
What does the command pip freeze do?
ARemoves all installed packages
BCreates a new environment
CUpdates pip to the latest version
DShows installed packages and their versions
How do you deactivate the current conda environment?
Aconda deactivate
Bpip deactivate
Cconda stop
Dpip stop
Which file is commonly used to save pip package dependencies for sharing?
Arequirements.txt
Benvironment.yml
Csetup.py
Dconda.yaml
What is the purpose of the environment.yml file in conda?
ATo list pip packages only
BTo define environment name and packages for conda
CTo update conda itself
DTo uninstall environments
Explain how to create, activate, and deactivate a conda environment.
Think about commands to start and stop using an isolated space for your project.
You got /3 concepts.
    Describe the differences and roles of conda and pip in environment and package management.
    Consider what each tool controls and where they get packages from.
    You got /4 concepts.