ImportError:在使用Tensorflow GPU在运行Keras的Rstudio上加载数据集时,libcublas

时间:2018-10-07 18:22:43

标签: r tensorflow keras rstudio ubuntu-18.04

Ubuntu 18.04 Rstudio 3.4.4 Tensorflow 1.11.0

当我运行install_keras(tensorflow="gpu")时 一切都很好,最后几行是:

tensorflow-gpu 1.11.0 has requirement setuptools<=39.1.0, but you'll have setuptools 40.4.3 which is incompatible.
Installing collected packages: keras, tensorflow-hub
Successfully installed keras-2.2.4 tensorflow-hub-0.1.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Installation complete.


Restarting R session...

我认为这些问题与接下来发生的事情无关。 我加载了IMDB数据集:> imdb <- dataset_imdb(num_words = 10000) 这些错误弹出:

Error: ImportError: Traceback (most recent call last):
  File "/home/chubuntu/anaconda3/envs/r-tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/chubuntu/anaconda3/envs/r-tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/chubuntu/anaconda3/envs/r-tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/chubuntu/anaconda3/envs/r-tensorflow/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/home/chubuntu/anaconda3/envs/r-tensorflow/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: libcublas

我可以在没有GPU的情况下使用tensorflow将这些数据集加载到keras中。那么这里可能出什么问题了?

0 个答案:

没有答案