Any solution for this error ?, need help :(
I import cv2 in python3:
import cv2
and it results like this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/cv2/__init__.py", line 4, in <module>
from .cv2 import *
ImportError: libQtTest.so.4: cannot open shared object file: No such file or directory
Use this:
sudo apt install libqt4-test
Reference:
You can install opencv-python in raspberry with the following commands:
pip3 install opencv-python
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install python3-pyqt5
sudo apt install libqt4-test
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With