pi@raspberrypi:~ $ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/cv2/__init__.py", line 7, in <module>
from .cv2 import *
ImportError: numpy.core.multiarray failed to import
以上のファイルは,import cv2 でのつぎのエラーを無くすることになるもの:$ python >>> import cv2 Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/home/pi/.local/lib/python3.5/site-packages/cv2/init.py”, line 3, in <module> from .cv2 import * ImportError: liblapack.so.3: cannot open shared object file: No such file or directory