• 6 hours
  • Easy

Free online content available in this course.



Got it!

Last updated on 3/1/22

Create a Python Virtual Environment With virtualenv

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

Ever considered an OpenClassrooms diploma?
  • Up to 100% of your training program funded
  • Flexible start date
  • Career-focused projects
  • Individual mentoring
Find the training program and funding option that suits you best