ImportError:扩展扩展horovod.tensorflow

时间:2019-05-24 21:05:20

标签: python-3.x machine-learning horovod

继续出现此错误,我已经多次重新安装了horovod和ten​​sorflow。请帮忙!

Traceback (most recent call last):
  File "train.py", line 3, in <module>
    import horovod.tensorflow as hvd
  File "/home/tavishi/.local/lib/python3.5/site-packages/horovod/tensorflow/__init__.py", line 40, in <module>
    check_extension('horovod.tensorflow', 'HOROVOD_WITH_TENSORFLOW', __file__, 'mpi_lib')
  File "/home/tavishi/.local/lib/python3.5/site-packages/horovod/common/__init__.py", line 42, in check_extension
    'Horovod with %s=1 to debug the build error.' % (ext_name, ext_env_var))
ImportError: Extension horovod.tensorflow has not been built.  If this is not expected, reinstall Horovod with HOROVOD_WITH_TENSORFLOW=1 to debug the build error.

1 个答案:

答案 0 :(得分:0)

所以我解决了这个问题。

我用过:https://github.com/horovod/horovod/issues/155

使用GitHub指示重建Horovod解决了我的问题。我将回购克隆到了我要运行的程序所在的文件夹中。

希望这会有所帮助!