在Mac上构建Tensorflow时ImportError:dlopen

时间:2019-06-15 19:55:19

标签: tensorflow build bazel

我正在尝试在macOS High Sierra上构建Tensorflow。我正在关注official instructions。 我尝试了很多次,但总是遇到相同的错误。这是堆栈跟踪:

    ERROR: /Users/Pietro/tensorflow/tensorflow/BUILD:784:1: Executing genrule //tensorflow:tf_python_api_gen_v1 failed (Exit 1): bash failed: error executing command 
  (cd /private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow && \
  exec env - \
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Julia-0.6.app/Contents/Resources/julia/bin:/Users/Pietro/Script:/Users/Pietro/Library/Android/sdk/sdk/emulator:/Users/Pietro/Script:/Users/Pietro/Library/Android/sdk/tools/bin:/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages \
    PYTHON_BIN_PATH=/usr/bin/python \
    PYTHON_LIB_PATH=/Library/Python/2.7/site-packages \
    TF_CONFIGURE_IOS=0 \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1 --root_init_template=tensorflow/api_template_v1.__init__.py --apidir=bazel-out/darwin-py2-opt/bin/tensorflow_api/v1/ --apiname=tensorflow --apiversion=1 --compat_apiversion=1 --compat_apiversion=2  --compat_init_template=tensorflow/compat_template_v1.__init__.py --compat_init_template=tensorflow/compat_template.__init__.py --package=tensorflow.python,tensorflow.lite.python.lite --output_package=tensorflow._api.v1 bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/v1.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/app/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/audio/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/autograph/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/autograph/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/bitwise/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/config/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/config/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/config/optimizer/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/config/threading/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/data/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/data/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/debugging/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/distribute/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/distribute/cluster_resolver/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/distribute/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/distributions/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/dtypes/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/errors/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/feature_column/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/gfile/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/io/gfile/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/graph_util/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/image/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/io/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/queue/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/initializers/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/layers/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/layers/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/linalg/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/lite/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/lite/constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/lite/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/lite/experimental/nn/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/logging/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/lookup/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/lookup/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/losses/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/manip/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/math/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/metrics/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/nest/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/nn/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/nn/rnn_cell/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/profiler/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/python_io/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/quantization/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/ragged/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/random/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/random/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/raw_ops/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/resource_loader/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/strings/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/builder/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/loader/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/main_op/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/signature_constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/signature_def_utils/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/tag_constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/saved_model/utils/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/sets/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/signal/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/sparse/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/spectral/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/summary/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/sysconfig/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/test/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/tpu/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/tpu/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/train/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/train/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/train/queue_runner/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/user_ops/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/version/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/xla/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/xla/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/audio/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/autograph/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/autograph/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/bitwise/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/compat/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/config/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/config/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/config/optimizer/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/config/threading/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/data/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/data/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/debugging/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/distribute/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/distribute/cluster_resolver/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/distribute/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/dtypes/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/errors/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/feature_column/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/io/gfile/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/graph_util/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/image/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/io/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/queue/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/linalg/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/lite/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/lite/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/lookup/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/lookup/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/math/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/nest/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/nn/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/quantization/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/ragged/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/random/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/random/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/raw_ops/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/saved_model/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/sets/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/signal/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/sparse/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/strings/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/summary/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/summary/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/sysconfig/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/test/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/tpu/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/tpu/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/train/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/train/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/version/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/xla/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v2/xla/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/app/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/audio/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/autograph/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/autograph/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/bitwise/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/compat/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/config/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/config/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/config/optimizer/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/config/threading/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/data/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/data/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/debugging/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/distribute/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/distribute/cluster_resolver/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/distribute/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/distributions/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/dtypes/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/errors/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/feature_column/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/gfile/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/io/gfile/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/graph_util/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/image/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/io/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/queue/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/initializers/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/layers/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/layers/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/linalg/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/lite/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/lite/constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/lite/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/lite/experimental/nn/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/logging/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/lookup/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/lookup/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/losses/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/manip/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/math/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/metrics/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/nest/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/nn/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/nn/rnn_cell/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/profiler/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/python_io/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/quantization/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/ragged/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/random/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/random/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/raw_ops/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/resource_loader/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/strings/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/builder/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/loader/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/main_op/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/signature_constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/signature_def_utils/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/tag_constants/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/saved_model/utils/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/sets/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/signal/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/sparse/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/spectral/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/summary/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/sysconfig/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/test/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/tpu/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/tpu/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/train/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/train/experimental/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/train/queue_runner/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/user_ops/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/version/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/xla/__init__.py bazel-out/darwin-py2-opt/bin/tensorflow/_api/v1/compat/v1/xla/experimental/__init__.py')
Execution platform: @bazel_tools//platforms:host_platform
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 27, in <module>
    from tensorflow.python.tools.api.generator import doc_srcs
  File "/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: dlopen(/private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so, 6): Symbol not found: __ZN10tensorflow25FunctionLibraryDefinition17kIntsOnDeviceAttrE
  Referenced from: /private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so
  Expected in: flat namespace
 in /private/var/tmp/_bazel_Pietro/c7b36cabf76b7b943215078ebfcf64a0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so


Failed to load the native TensorFlow runtime.

我该如何解决?

0 个答案:

没有答案