17. Creating a Virtual Environment

Creating a Virtual Environment

In the last video, you saw how to make requests locally after first creating a virtual environment from the terminal in a Cloud9 environment. The next couple quizzes are meant to check your understanding of the steps it takes to create a virtual environment.

If you find yourself unsure of an answer, it may help to read the python documentation for virtual environments.

What is the terminal command for creating a virtual, python environment named mycloud9?

SOLUTION: `python3 -m venv ~/mycloud9`

What is the terminal command for activating a virtual, python environment named mycloud9?

SOLUTION: `source ~/mycloud9/bin/activate`

After you've created a virtual environment, which two steps do you then typically follow (in order)?

SOLUTION: 1. activate the environment, 2. install any required dependencies

Alternatively, you can use the conda package manager to create and source virtual environments. This may be what you have used if you've ever taken Udacity's Deep Learning program , which has instructions for downloading and using conda (in the main course repository) for environment creation.