无法加载动态库'libnvinfer.so.6'

问题描述 投票:0回答:1

我正在尝试正常导入TensorFlow python程序包,但出现以下错误:

enter image description here

这是上面终端图像中的文本:

2020-02-23 19:01:06.163940: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2020-02-23 19:01:06.164019: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2020-02-23 19:01:06.164030: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
<module 'tensorflow_core._api.v2.version' from '/home/saman/miniconda3/envs/testconda/lib/python3.7/site-packages/tensorflow_core/_api/v2/version/__init__.py'
python linux tensorflow pip dynamic-library
1个回答
0
投票

这是警告,不是错误。您仍然可以使用TensorFlow。共享库libnvinferlibnvinfer_plugin是可选的,只有在使用nvidia的TensorRT功能时才需要。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.