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
If you don't encounter any permission errors with
pip install -U numpy
try:
pip install --user -U numpy