When I installed OpenCV using Homebrew (brew), I got this problem whenever I run this command to test python -c \"import cv2\":
brew
python -c \"import cv2\"
Run
When you already have an older version of NumPy, use this:
pip install numpy --upgrade
If it still doesn't work, try:
pip install numpy --upgrade --ignore-installed