我是靠谱客的博主 曾经裙子,最近开发中收集的这篇文章主要介绍安装tensorflow-rocm==1.15找不到 libmcwamp.so.2,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Using TensorFlow backend.
Traceback (most recent call last):
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: libmcwamp.so.2: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/pfasdr/neural/ze_discriminate_pd_np_linear.py", line 9, in <module>
    from pfasdr.neural.ze_discriminate_pd_np.learn_grid_constraints_module import 
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/pfasdr/neural/ze_discriminate_pd_np/learn_grid_constraints_module.py", line 5, in <module>
    from keras import Model
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/keras/__init__.py", line 3, in <module>
    from . import utils
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/keras/utils/__init__.py", line 6, in <module>
    from . import conv_utils
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/keras/utils/conv_utils.py", line 9, in <module>
    from .. import backend as K
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/keras/backend/__init__.py", line 1, in <module>
    from .load_backend import epsilon
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/keras/backend/load_backend.py", line 90, in <module>
    from .tensorflow_backend import *
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 5, in <module>
    import tensorflow as tf
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow/__init__.py", line 98, in <module>
    from tensorflow_core import *
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/__init__.py", line 40, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow/__init__.py", line 50, in __getattr__
    module = self._load()
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow/__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/home/bengt/Projekte/gitlab.com/PFASDR/PFASDR.Code.Main/.tox/py36-neural-rocm/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: libmcwamp.so.2: cannot open shared object file: No such file or directory


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.

Process finished with exit code 1

原因是因为rocm升级3之后,libmcwamp.so.2名字升级到libmcwamp.so.3,所以在调用1.x的tensorflow的时候就会报错,解决办法很简单

sudo ln -s /opt/rocm/lib/libmcwamp.so.3 /opt/rocm/lib/libmcwamp.so.2

大概就是上面这条命令根据实际情况微调

最后

以上就是曾经裙子为你收集整理的安装tensorflow-rocm==1.15找不到 libmcwamp.so.2的全部内容,希望文章能够帮你解决安装tensorflow-rocm==1.15找不到 libmcwamp.so.2所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(44)

评论列表共有 0 条评论

立即
投稿
返回
顶部