[英]Failed to load the native TensorFlow runtime. (Colab error)
我試圖在這個 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
因此,通過嘗試運行演示命令( .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.
所以我在這里和GitHub 站點上的主要項目的問題部分要求一些解決方案。 謝謝。
這些是此錯誤的可能原因:
有一個庫位於不同的位置/未安裝在您的系統上,無法加載。 按照此處提到的說明進行操作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.