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?
✗ Incorrect
The command
conda env list shows all conda environments available.What does the command
pip freeze do?✗ Incorrect
pip freeze lists all installed packages with exact versions, useful for sharing dependencies.How do you deactivate the current conda environment?
✗ Incorrect
Use
conda deactivate to exit the active conda environment.Which file is commonly used to save pip package dependencies for sharing?
✗ Incorrect
requirements.txt lists pip packages and versions for easy installation.What is the purpose of the
environment.yml file in conda?✗ Incorrect
environment.yml describes a conda environment including its name and packages.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.