Python has a wonderful tool called a virtual environment, which lets you effectively hermetically seal various python libraries (which may conflict with each other!) from each other. Is there an equivalent tool for the whole of Ubuntu? Or, rather, for things I make?
For instance, I have a repo that requires a modified version of OpenCV 3.0. However, I'd like to make another version of OpenCV, version 3.1.0, with CUDA support, for an entirely different repo that I'm working on in parallel, as well as obtain the bugfixes in OpenCV 3.1.0. I'm not skilled enough to port the changes from the modified OpenCV 3.0 to OpenCV 3.1.0...is there a way to install both without them fighting? Perhaps with the Ubuntu equivalent of a virtual env?