继续出现此错误,我多次重新安装了horovod和tensorflow。请帮忙!
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.
最佳答案
所以我解决了这个问题。
我使用过:https://github.com/horovod/horovod/issues/155
使用GitHub指令重建Horovod解决了我的问题。我将存储库克隆到了我要运行的程序所在的文件夹中。
希望这可以帮助!
关于python-3.x - ImportError:扩展horovod.tensorflow尚未构建,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56299525/