• 6 hours
  • Easy

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 12/23/20

Create a Python Virtual Environment With virtualenv

Log in or subscribe for free to enjoy all this course has to offer!

Evaluated skills

  • Create a Python virtual environment with virtualenv
  • Question 1

    What command would you use to output a record of the packages installed inside your virtual environment into a  requirements.txt  file?

    • pip list > requirements.txt

    • pip freeze | requirements.txt

    • pip list | requirements.txt

    • pip freeze > requirements.txt

  • Question 2

    What is the best place to store a virtual environment when working on a project?

    • Anywhere in the project folder.

       

    • In the same place as all of your other virtual environments.

       

    • In the project root.

  • Question 3

    What should you name your virtual environments?

    • venv

    • <project_name>

    • env