Traceback (most recent call last):
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 31, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 27, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 31, in <module>
from keras_textclassification.conf.path_config import path_model
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras_textclassification/__init__.py", line 8, in <module>
from keras_textclassification.text_classification_api import train
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras_textclassification/text_classification_api.py", line 22, in <module>
from keras_textclassification.m00_Albert.graph import AlbertGraph
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras_textclassification/m00_Albert/graph.py", line 9, in <module>
from keras.layers import SpatialDropout1D, Conv1D, GlobalMaxPooling1D, Dense
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras/__init__.py", line 3, in <module>
from . import utils
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras/utils/__init__.py", line 6, in <module>
from . import conv_utils
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras/utils/conv_utils.py", line 9, in <module>
from .. import backend as K
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras/backend/__init__.py", line 89, in <module>
from .tensorflow_backend import *
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 5, in <module>
import tensorflow as tf
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 31, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/datad/pyroot/similartextKT/env/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 27, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
按以下步骤安装和执行报错
报错信息:
查资料说是cuda未安装或者cuda的版本有问题。
本机:ubuntu18.04, 4核CPU。没有显卡。
pip3 freeze