Environment Lab (CodeGrade)

Close

Learning Goals


Key Vocab


Introduction

In this lab we will create a virtual environment using pipenv with specific versions of Python and libraries.


Instructions

Run pipenv shell to enter the virtual environment. Then run pytest lib/testing_env to run your tests.

Once all of your tests are passing, commit and push your work using git to submit.


Conclusion

Virtual environments allow us to have a deterministic and predictable runtime for our Python projects. You can apply what we learned in this exercise to make sure you have the right environment to run your Python code in for your future projects.


Resources