Cannot build opencv for python3.9

I got it to work VIA my notes. Then I made the howto above. Now on a Fresh install of jetson 4.6.1 and am following the howto I made step by step.

Currently in make for openCV 4.5.5.

Ill know if it works right when thats done.

I recommend at this point that you make a fresh install of jetpack 4.6.1 and start clean.
I make clones of my sd card as known good stop points for this kind of work. see —> Create an image of my SD-CARD so someone else can reuse it - #2 by meeki007

Do check out the python3.9.X install notes as im sure its not what you used/did. I ran into a few issues installing it where it would install fine but openCV would not see it or complain about a library. But I got it working with this method.

Goal is to also cover installing Torch, TorchVision, and then yolov5
You can’t use the pywheels built with other python versions so you have to build/make

The one thing I’m dreading having to build/make again is ONNX Runtime. needed for sparseml’s yolov5 … man that was a pain to get built right in python3.6.x I’m hoping its a bit easier or the same as my notes for python 3.6.x

1 Like