简体   繁体   English

规则'//tensorflow/python:_pywrap_tensorflow_internal.so'的链接失败

[英]Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' failed

I am trying to install Tensorflow on my laptop which has i5 and 8GB RAM. 我正在尝试在具有i5和8GB RAM的笔记本电脑上安装Tensorflow。

When I am building the Tensorflow from source I use 当我从源代码构建Tensorflow时

bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-march=native //tensorflow/tools/pip_package:build_pip_package

Everything seems to go well but at the end I get this error 一切似乎进展顺利,但最后我得到了这个错误

`ERROR: /home/siladittya/tensorflow/tensorflow/python/BUILD:3166:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' failed (Exit 1)

/usr/bin/ld.gold: fatal error: bazel-out/k8-opt/bin/tensorflow/core/kernels/_objs/quantize_and_dequantize_op/tensorflow/core/kernels/quantize_and_dequantize_op.pic.o: read: Input/output error

collect2: error: ld returned 1 exit status

Target //tensorflow/tools/pip_package:build_pip_package failed to build

` `

I looked up a few posts in some forums, but they are saying that it can be solved using --local_resources but when I used that argument, 我在一些论坛上查找了一些帖子,但是他们说可以使用--local_resources来解决,但是当我使用该参数时,

`bazel build --local_resources 8000,2.0,2.0 --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --config=opt //tensorflow/tools/pip_package:build_pip_package`

I am getting the same error again. 我再次遇到相同的错误。

What is the solution to this problem? 这个问题有什么解决方案?

Doing fsck on /dev/sda1 ie on the system root partition solved the problem. /dev/sda1即系统根分区上)执行fsck解决了该问题。

And it seems, that it is not a problem that can be solved using --local_resources 看来,这不是可以使用--local_resources解决的问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ImportError:dlopen(...):未加载库:@rpath/_pywrap_tensorflow_internal.so - ImportError: dlopen(...): Library not loaded: @rpath/_pywrap_tensorflow_internal.so 张量流导入错误:_pywrap_tensorflow_internal.so:未定义符号:PyClass_Type - tensorflow import error: _pywrap_tensorflow_internal.so: undefined symbol: PyClass_Type 如何解决:DLL 加载失败:找不到文件 tensorflow.python._pywrap_tensorflow_internal - How to resolve: DLL load failed: The file tensorflow.python._pywrap_tensorflow_internal could not be found Python 3.6上的Pyinstaller和Tensorflow的打包问题(_pywrap_tensorflow_internal) - Packaging Issue with Pyinstaller and Tensorflow on Python 3.6 (_pywrap_tensorflow_internal) Tensorflow '_pywrap_tensorflow_internal' 模块错误 - Tensorflow '_pywrap_tensorflow_internal' module error TensorFlow 错误:ImportError: DLL 在 Python3.8 中导入 _pywrap_tensorflow_internal 时加载失败,错误代码为 3221225501 - TensorFlow Error: ImportError: DLL load failed with error code 3221225501 while importing _pywrap_ tensorflow_internal in Python3.8 tensorflow:没有名为'_pywrap_tensorflow_internal'的模块 - tensorflow :No module named '_pywrap_tensorflow_internal' TensorFlow _pywrap_tensorflow_internal 错误 - TensorFlow _pywrap_tensorflow_internal Error ImportError:在Python 3.5上没有名为“ _pywrap_tensorflow_internal”的模块 - ImportError: No module named '_pywrap_tensorflow_internal' at python 3.5 Tensorflow-没有名为'_pywrap_tensorflow_internal'的模块 - Tensorflow - No module named '_pywrap_tensorflow_internal'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM