cong / yolov5_deepsort_tensorrt_cpp

This repo is a C++ version of yolov5_deepsort_tensorrt. Packing all C++ programs into .so files, using Python script to call C++ programs further.
MIT License
49 stars 5 forks source link

ImportError: libyolov5.so,how to fix it? #4

Open Robert-hua opened 2 years ago

Robert-hua commented 2 years ago

Traceback (most recent call last): File "demo.py", line 17, in import yolo_deepsort ImportError: libyolov5.so: cannot open shared object file: No such file or directory

cong commented 2 years ago

Can you specify the situation where the error is reported, and what's your python version?

Robert-hua commented 2 years ago

python==3.7.5 cuda==10.2 opencv-python=4.2 当我直接运行python demo.py时,会抛出异常ImportError: libyolov5.so: cannot open shared object file: No such file or directory 无法导入yolo_deepsort模块

cong commented 2 years ago

编译安装OpenCV试一下

Robert-hua commented 2 years ago

没有解决,还是相同的问题。

cong commented 2 years ago

没有解决,还是相同的问题。

ldd yolo_deepsort.cpython-37m-x86_64-linux-gnu.so, 看一看还缺少哪些链接库,对应链接上,看看能不能解决你的问题。