I am trying to run a Yolov12 model on my jetson running Jetpack 6.2/CUDA 12.6 and zed 2i camera but I am running into an issue. Pyzed 5.0 is requiring numpy>2.0 but pytorch is requiring numoy<2.0
Isn’t this a very common use case? What is the solution?
If you really need a pyzed wheel built against numpy1.x, you could downgrade to python 3.8 if possible for you.
Like most packages with dependencies, yes, it is a common use case to have conflicts. Especially with numpy since numpy 2.0 introduced major ABI break. And packages linked against it need to adapt accordingly.
$ python3
Python 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'2.7.0a0+git1341794'
>>> import numpy
>>> numpy.__version__
'2.2.6'
Sorry I forgot to update this post but I was using torch 2.8.x which is still compiled with numpy 1.x for the Jetson. I ended up just making 2 virtual environments, one with numpy <2 and the other with numpy >2, and then just using shared memory to access the camera data from the other environment