How to install OpenCV ?

As you observed, Python 2 has been deprecated. This is why starting with 5.7 ParaView uses Python 3 (except on Mac for technical reasons).

I don’t know how picky Python is in mixing versions of different patch releases, but it makes sense that they would have to match. Someone who knows more about Python might have to answer that.