I would like to install OpenCV with Python support on my Raspberry Pi for multiple versions of Python.
I am using the instructions at http://docs.opencv.org/3.1.0/d7/d9f/tutorial_Linux_install.html. When OpenCV builds, it automatically targets python 3.4. That is OK, but I would also like to also add support to Python 2.7.
I have seen instructions that utilize virtual environments (http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/), but don't want to use virtual environments.
How can I tell the OpenCV build / install to target specific or multiple versions of Python without using virtual environments? I assume there is a way to instruct CMake on what to build, but I know very little about how to use CMake.