diff --git a/README.md b/README.md index 8c26910efb9f9bf3d7ea88847a9f187654c29f99..538d111ffdbd59a7a33bd1266f0f4b556b4274da 100644 --- a/README.md +++ b/README.md @@ -97,15 +97,16 @@ To see which tensorrt version is needed run strace -e open,openat python -c "import tensorflow as tf" 2>&1 | grep "libnvinfer\|TF-TRT" ``` -Now, [tensorrt](https://docs.nvidia.com/deeplearning/tensorrt/) is installed (installation may fail, but as long as the libnvinver.so.\* and libnvinver_plugin.so.\* are present, that's no big deal) +Now, [tensorrt](https://docs.nvidia.com/deeplearning/tensorrt/) is installed (installation might fail, but as long as the libnvinver.so.\* and libnvinver_plugin.so.\* are present, that's no big deal) ```sh -pip install tensorrt==x.y.z +pip install --no-cache tensorrt==x.y.z ``` Unfortunately, tensorrt does not link the shared libraries, so we need to do ```sh -ln -s /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer.so.8 /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer.so.8.6.1 -ln -s /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer_plugin.so.8 /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer_plugin.so.8.6.1 +tensorrt_dir=$(pwd)/venv/lib/python$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")/site-packages/tensorrt_libs +ln -s $tensorrt_dir/libnvinfer.so.8 $tensorrt_dir/libnvinfer.so.8.6.1 +ln -s $tensorrt_dir/libnvinfer_plugin.so.8 $tensorrt_dir/libnvinfer_plugin.so.8.6.1 ``` Be aware, that your paths and versions may differ from the given paths. Your paths can be found via