无法加载libc.so.6文件中未定义的带有链接时间参考的本地TensorFlow runtime.version GLIBC_PRIVATE

时间:2019-03-31 06:41:13

标签: python tensorflow

我一直在遵循ML引擎上的google教程,并试图在本地计算机上进行一些培训。我安装了所有东西,但是当我运行命令时。 gcloud ml-engine local train \ --module-name trainer.task \ --package-path trainer/ \ --job-dir $MODEL_DIR \ -- \ --train-files $TRAIN_DATA \ --eval-files $EVAL_DATA \ --train-steps 1000 \ --eval-steps 100

这就是我得到的

    Traceback (most recent call last):
  File "/snap/google-cloud-sdk/76/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/snap/google-cloud-sdk/76/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/alvin/cloudml-samples/census/estimator/trainer/task.py", line 22, in <module>
    import tensorflow as tf
  File "/home/alvin/.local/lib/python2.7/site-packages/tensorflow/__init__.py", line 22, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/home/alvin/.local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/alvin/.local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/alvin/.local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/alvin/.local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/alvin/.local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: /lib/x86_64-linux-gnu/librt.so.1: symbol __close_nocancel, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference


Failed to load the native TensorFlow runtime.

我不知道这个特定错误是什么意思。 香港专业教育学院看过具有类似错误的问题,但它们似乎与我期望的适用于我的解决方案不同

0 个答案:

没有答案