0

我正在使用 Tensorflow/CUDA 10.0 运行 Google 的预构建深度学习图像。我收到此错误消息:

ImportError: Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/usr/lib/python3.5/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
    return _load(spec)

ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
4

1 回答 1

1

libcuda.so.1是一个文件,它是 Nvidia 驱动程序的一部分。如果由于某些原因未安装驱动程序,您可以运行以下命令来安装它:

sudo /opt/deeplearning/install-driver.sh
于 2019-01-19T20:25:32.073 回答