我尝试从源代码安装Tensorflow。Tensorflow安装失败。 TensorContractionThreadPool.h:没有这样的文件或目录
./configure
bazel build --copt=-march=native --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
但是当我做“巴泽勒建设......”它提升一个像这样的异常..
ERROR: /home/anderson/Downloads/tensorflow/tensorflow/core/kernels/BUILD:300:1: C++ compilation of rule '//tensorflow/core/kernels:reader_base' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter ... (remaining 115 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
In file included from ./tensorflow/core/framework/numeric_types.h:25:0,
from ./tensorflow/core/framework/allocator.h:23,
from ./tensorflow/core/framework/op_kernel.h:22,
from ./tensorflow/core/framework/queue_interface.h:22,
from ./tensorflow/core/kernels/reader_base.h:21,
from tensorflow/core/kernels/reader_base.cc:16:
./third_party/eigen3/unsupported/Eigen/CXX11/FixedPoint:42:52: fatal error: src/Tensor/TensorContractionThreadPool.h: No such file or directory
compilation terminated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
说得简单,它说“SRC /张量/ TensorContractionThreadPool.h:无这样的文件或目录“
我能做些什么来解决这个问题?
是的,已知的问题。在https://github.com/tensorflow/tensorflow/issues/6558 –
@YaroslavBulatov的评论中有一个解决方法谢谢。但没有任何建议不能解决问题.... – Anderson