hydra安装——AttributeError: module ‘hydra‘ has no attribute ‘main‘

AttributeError: module ‘hydra’ has no attribute ‘main’
问题
1.使用如下方法安装hydra,pip install hydra,运行后报错AttributeError: module 'hydra' has no attribute 'main'

 

解决方法
2.卸载之前安装的hydra,pip uninstall hydra
3.应该使用pip install hydra-core --upgrade,安装后运行没有问题


参考:https://github.com/facebookresearch/hydra/issues/919
————————————————
版权声明:本文为CSDN博主「wavehaha」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wavehaha/article/details/124605824

posted @ 2023-03-23 14:44  呦呦南山  阅读(477)  评论(0编辑  收藏  举报