简体   繁体   English

无法加载本机 TensorFlow 运行时。 (Colab 错误)

[英]Failed to load the native TensorFlow runtime. (Colab error)

I have tried to run the End-to-end Recovery of Human Shape and Pose project on one this colab page, as you can see below: So at this project there are some conflicts with the tensorflow version, and i have tried to use the tensorflow=1.13.0 by these codes:我试图在这个 colab 页面上运行End-to-end Recovery of Human Shape and Pose项目,如下所示: 所以在这个项目中,与 tensorflow 版本存在一些冲突,我尝试使用tensorflow=1.13.0通过这些代码:

!pip2 uninstall tensorflow  -y
!pip2 install tensorflow==1.13.0rc1 --ignore-installed
%tensorflow_version 1.x

So by trying to run the demo coomand ( .python2 -m demo --img_path /content/hmr/data/coco1.png ) i get some error about problem in Tensorflow module, as below:因此,通过尝试运行演示命令( .python2 -m demo --img_path /content/hmr/data/coco1.png ),我得到了一些关于 Tensorflow 模块中的问题的错误,如下所示:

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/content/hmr/demo.py", line 27, in <module>
    import tensorflow as tf
  File "/tensorflow-1.15.2/python3.7/tensorflow/__init__.py", line 99, in <module>
    from tensorflow_core import *
  File "/tensorflow-1.15.2/python3.7/tensorflow_core/__init__.py", line 28, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/tensorflow-1.15.2/python3.7/tensorflow/__init__.py", line 50, in __getattr__
    module = self._load()
  File "/tensorflow-1.15.2/python3.7/tensorflow/__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/tensorflow-1.15.2/python3.7/tensorflow_core/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/tensorflow-1.15.2/python3.7/tensorflow_core/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/tensorflow-1.15.2/python3.7/tensorflow_core/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/tensorflow-1.15.2/python3.7/tensorflow_core/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/tensorflow-1.15.2/python3.7/tensorflow_core/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: dynamic module does not define init function (init_pywrap_tensorflow_internal)


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.

So I asked for some solution here and at the Issue part of the main project on GitHub site .所以我在这里和GitHub 站点上的主要项目的问题部分要求一些解决方案。 Thanks.谢谢。

These are the possible reasons for this error:这些是此错误的可能原因:

  1. You need to install the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019您需要为 Visual Studio 2015、2017 和 2019 安装 Microsoft Visual C++ Redistributable
  2. Your CPU does not support AVX2 instructions您的 CPU 不支持 AVX2 指令
  3. Your CPU/Python might be on 32 bits你的 CPU/Python 可能是 32 位的

There is a library that is in a different location/not installed on your system that cannot be loaded.有一个库位于不同的位置/未安装在您的系统上,无法加载。 Follow the instructions mentioned here .按照此处提到的说明进行操作。

暂无
暂无

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

相关问题 “无法加载本机 TensorFlow 运行时。” - “Failed to load native TensorFlow runtime.” 无法加载本机 TensorFlow 运行时。? - Failed to load the native TensorFlow runtime.? Tensorflow:导入失败,并显示“无法加载本机TensorFlow运行时。” - Tensorflow: Import failed with “Failed to load the native TensorFlow runtime.” “无法加载本机 TensorFlow 运行时。” 使用 rocm 导入 tensorflow 时出错 - “Failed to load the native TensorFlow runtime.” error when importing tensorflow with rocm 无法加载本地TensorFlow运行时。 Windows 10上的Python 3.6 - Failed to load the native TensorFlow runtime. Python 3.6 on Windows 10 无法加载本机 TensorFlow 运行时。 下载anaconda 3-5.2 - Failed to load the native TensorFlow runtime. Downloaded anaconda 3-5.2 无法加载本机 TensorFlow 运行时。 蟒蛇 3.5.2 - Failed to load the native TensorFlow runtime. Python 3.5.2 如何修复“无法加载本机 TensorFlow 运行时”。 尝试在 gpu 上运行时出错? - How to fix "Failed to load the native TensorFlow runtime." error when attempting running on gpu? 无法加载本机TensorFlow运行时。 原因:未找到图像。 我究竟做错了什么? - Failed to load the native TensorFlow runtime. Reason : Image not found. What am I doing wrong? 无法加载本地TensorFlow运行时。 运行g2p-seq2seq --version时 - Failed to load the native TensorFlow runtime. when running g2p-seq2seq --version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM