QuestionQ19

Network Automation Foundation

A collection of automation scripts runs without issue from a local machine, but an experiment must be conducted using a new package discovered online.

How can this new package be isolated from the main code base?

  • A Add the new package to your requirements.txt file.
  • B Create a new virtual machine and perform a pip install of the new package.
  • C Perform a pip install of the new package when logged into your local machine as root.
  • D Create a new virtual environment and perform a pip install of the new package.
Explanation

A Python virtual environment is a self-contained directory containing its own Python installation and additional packages. Installing the experimental package with pip in that environment keeps its dependencies separate from the main project and other Python environments.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!