I encountered an error when running yolov5 today. The specific content is as follows:
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
successfully resolved.