Fixing TensorFlow libcublas.so.8.0: cannot open shared object file on Ubuntu
Problem:
When you run import tensorflow
in Python, you get one of the following errors:
Solution
Install the required packages using:
Note that you also need to install cuDNN - see this followup post Which version on CuDNN should you install for TensorFlow GPU on Ubuntu? for details on how to do that.
If this method does not work, you can (as a quick workaround) uninstall tensorflow-gpu
and install the tensorflow
- the version without GPU support:
However, this will likely make your applications much slower.
For other solutions see the TensorFlow bugtracker on GitHub.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow