Cafe IT
Fix Could not load dynamic library ‘libnvinfer.so.7’
Fix Could not load dynamic library ‘libnvinfer.so.7’
1. Install: nvidia–tensorrt
pip install nvidia-tensorrt
2. Cd to tensorrt_libs
cd /home/sysadmin/anaconda3/envs/tf/lib/python3.9/site-packages/tensorrt_libs
+ You need change path on your PC
3. Create symbolic links
ln -s libnvinfer_plugin.so.8 libnvinfer_plugin.so.7
ln -s libnvinfer.so.8 libnvinfer.so.7
4. Add tensorrt to library path
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sysadmin/anaconda3/envs/tf/lib/python3.9/site-packages/tensorrt_libs