An error was reported when importing other Python files into Isaac Sim's Helloworld file

134/5000
I am trying to add a new feature to Isaac Sim’s HelloWorld: get a camera image, and want to use YoloV5 to do object detection on the captured image. However, when I added yoloV5 project files to HelloWorld folder, I reported an error when loading yoloV5 related modules in HelloWorld. Is there a solution?



Hi @845004988

You can install any python package by following the step, to install additional packages, described in the Isaac Sim doc: 4. Python Environment Installation — Omniverse Robotics documentation

Also, you can use the omni.kit.pipapi extension to install the required package at run time

try:
    import yolov5
except ImportError:
    omni.kit.pipapi.install("yolov5")
    import yolov5

thank you,it really helpful!