I can’t seem to install opencv for python3 on my Tx2 developers kit. I believe it does work on python2 though.
nvidia@tegra-ubuntu:~$ python Python 2.7.12 (default, Aug 22 2019, 16:36:40) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>>
But when I try it on python3, it raises an error:
nvidia@tegra-ubuntu:~$ python3 Python 3.7.4 (default, sep 16 2019, 13:04:55) [GCC 5.3.1 20160413] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: no module named 'cv2' >>>
I’ve tried building opencv from sources in different ways, but how do I make it work for python3 as well? I also tried it with pip but that again installs it for python2 and not python3.
I also tried pip3 but that does not work at all.
Furthermore, I do not have acces to JetPack, since I don’t have access to a physical Ubuntu host from which to flash the files.
Is there a way I can get libraries like opencv to work for python3? Thanks in advance!