[yolov5 error resolution] ModuleNotFoundError: No module named'ultralytics.yolo'

I encountered an error when running yolov5 today. The specific content is as follows:
Insert image description here
It shows that I do not have the ultralytics.yolo module, but I have installed ultralytics. At the same time, I also tried online methods pip install ultralytics.yolo, but still could not solve it. I also tried various methods. I have tried online methods, such as re-uninstalling and installing, etc., but there is still no solution.

Later, I found that the ultralyticsy requirement version in yolov5's requirements.txt file was >=8.0.100. Later, I tried to directly specify the version as 8.0.100 and successfully solved the problem.

Installation command:pip install ultralytics==8.0.100

Insert image description here
successfully resolved.

Guess you like

Origin blog.csdn.net/m0_63007797/article/details/134419610