If we are running Python 3.8 scripts inside a conda environment named foo and want to use the OpenCV that was installed using sudo apt install libopencv-d
foo
sudo apt install libopencv-d