首页 > 其他分享 >hydra安装——AttributeError: module ‘hydra‘ has no attribute ‘main‘

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

时间:2023-03-23 14:57:49浏览次数:32  
标签:no attribute module hydra main AttributeError

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

标签:no,attribute,module,hydra,main,AttributeError
From: https://www.cnblogs.com/leifzhang/p/17247431.html

相关文章