python草莓采摘程序,
入门按照配置要求python3.7.16;torch1.7.1+cu110
运行的时候报错:ModuleNotFoundError: No module named 'torch'
import torch是可以正常点进去跳转的
[detection-1] from strawberry_detection.util import preprocess, load_model, draw_objects
[detection-1] File "/home/li/work/WorkSpace/wole_robot/install/strawberry_detection/lib/python3.10/site-packages/strawberry_detection/util.py", line 25, in <module>
[detection-1] from strawberry_detection.data import VOCDetection, VOC_ROOT, VOCAnnotationTransform
[detection-1] File "/home/li/work/WorkSpace/wole_robot/install/strawberry_detection/lib/python3.10/site-packages/strawberry_detection/data/__init__.py", line 1, in <module>
[detection-1] from .voc0712 import VOCDetection, VOCAnnotationTransform, VOC_CLASSES, VOC_ROOT
[detection-1] File "/home/li/work/WorkSpace/wole_robot/install/strawberry_detection/lib/python3.10/site-packages/strawberry_detection/data/voc0712.py", line 11, in <module>
[detection-1] import torch
[detection-1] ModuleNotFoundError: No module named 'torch'
[ERROR] [detection-1]: process has died [pid 33208, exit code 1, cmd '/home/li/work/WorkSpace/wole_robot/install/strawberry_detection/lib/strawberry_detection/detection --ros-args -r __node:=detection --params-file /tmp/launch_params_dt4e3xo4'].
如图: