Error: resolution-too-deep, while installing “pip install ultralytics[export]“

Hello,

I got the below error while running the below


cd ~
pip install -U pip
git clone GitHub - ultralytics/ultralytics: Ultralytics YOLO 🚀
cd ultralytics
pip install -e “.[export]” onnxslim


from “Ultralytics YOLO11 on NVIDIA Jetson using DeepStream SDK and TensorRT“ first step

using Jetson Orin Nano (jetpack 6.1)


Collecting rich (from keras>=3.5.0->tensorflow<=2.19.0,>=2.0.0->ultralytics==8.3.252)
Using cached rich-14.2.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-14.1.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-14.0.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.9.3-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.9.2-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.9.1-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.9.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.8.1-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.8.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.7.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.6.0-py3-none-any.whl.metadata (18 kB)
Using cached rich-13.5.3-py3-none-any.whl.metadata (18 kB)
error: resolution-too-deep

× Dependency resolution exceeded maximum depth
╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.

hint: Try adding lower bounds to constrain your dependencies, for example: ‘package>=2.0.0’ instead of just ‘package’.

Link: Dependency Resolution - pip documentation v25.3

How do I fix this?


Also when running this step

….:~/ultralytics$ python3 export_yolo11.py -w yolo11s.pt

I’m getting the below error

Traceback (most recent call last):
File “/home/shamsee/ultralytics/export_yolo11.py”, line 3, in
import onnx
ModuleNotFoundError: No module named ‘onnx’

Thank you for your time and help

S

You should follow the Ultralytics Docs for Jetson on how to install and export:

pip needs to be upgraded like the docs show.

Thank you but I’ve tried this as well in hope as solution and got the same “error: resolution-too-deep” as well at end of, pip install ultralytics[export]

You can run yolo export format=onnx which will install the dependencies automatically.

Then you can run export_yolo11.py

Thank you ALL. I was able to get this to work. I installed in virtual environment instead. This was a “user error” on my end.

1 Like

Glad to hear! For anyone else who comes across this post, it’s always recommended to use a Python virtual environment when installing dependencies!