From the course: OpenCV for Python Developers

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Using virtual environments

Using virtual environments

- In this module, I'm going to share what virtual environments are, and why they're important to use. Compared to the initial launch of this course, I've added this topic of using virtual environments as an important best practice to adopt. You may find yourself working on multiple different Python packages and libraries for different purposes. If you installed every library globally on your machine, you would eventually run into some serious conflicts or incompatibility between libraries that you're installing. You may find one project needs an experimental, latest version of OpenCV but another project requires a stable dependency for an older version. Virtual environments alleviate these issues by allowing you to install project-specific dependencies locally. If furthermore, it makes it easy to reset your environment, if you end up with a bad dependency, without affecting all of your other projects. The following…

Contents