TensorFlow W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic l

运行TensorFlow后,报错:

W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

错误原因:
TensorFlow与CUDA版本不一致

解决方法:
降低TensorFlow版本安装

pip install --ignore-installed --upgrade tensorflow==<版本>

你可能感兴趣的:(Linux(Ubuntu),工具)