Could not load dynamic library ‘libnvinfer.so.6‘; 错误解决

错误:

import tensorflow as tf

Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory;

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.

解决:

pip uninstall tensorfolw

conda install tensorflow

你可能感兴趣的:(tensorflow,python,jupyter)