×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

tensorflow导入失败 已完结 szy2021-11-16 14:12:24 回复 4 查看 技术答疑 使用求助 社区交流
tensorflow导入失败
分享到:

思元270 芯片,虚拟环境已经创建好 tensoflow-mlu 都成功安装,如下:

捕获.JPG

导入tensorflow时报如下错误,请问是什么原因:

>>> import tensorflow as tf

Traceback (most recent call last):

  File "/envs/cambricon_virtualenv/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 58, in <module>

    from tensorflow.python.pywrap_tensorflow_internal import *

  File "/envs/cambricon_virtualenv/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 28, in <module>

    _pywrap_tensorflow_internal = swig_import_helper()

  File "/envs/cambricon_virtualenv/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper

    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, de ion)

  File "/usr/local/python3/lib/python3.7/imp.py", line 242, in load_module

    return load_dynamic(name, filename, file)

  File "/usr/local/python3/lib/python3.7/imp.py", line 342, in load_dynamic

    return _load(spec)

ImportError: libcnnl_extra.so: cannot open shared file: No such file or directory


版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭