I have installed OpenCV and and access it with Python 2. However, I'm unable to use OpenCV with Python 3.
It says "Cannot open shared object".
ImportError: libQTtest.so.4: cannot open shared object file: no such file or directory
I have tried sudo cat /usr/local/lib
and some other commands but I still can't get it to work.
How do I share OpenCV with Python 3 on a Raspberry Pi 3 B+?
I have also tried following the steps at https://github.com/cmusphinx/pocketsphinx-python/issues/6 and I have read this.
apt-get install python-opencv
? It'd also be helpful if you could rerun the code and get the exact, full error message you get rather than just the "Cannot open shared object" bit.sudo apt install libqtgui4
and then try again, @John. Let me know if you have any luck.sudo cat /usr/local/lib
supposed to accomplish, lol? It's gobbledygook, kind of like, "I put the car windows in reverse, but the steering wheel still won't open". Sorry, but you need to go into much more detail about exactly what you've done vis., "I installed..." and exactly when and what errors you are getting if you want someone else to troubleshoot this.