[Solved] hydra Install Error: AttributeError: module ‘hydra‘ has no attribute ‘main‘

AttributeError: module ‘hydra’ has no attribute ‘main’

Error:

1. use the following command to install hydra:pip install hydra,an error is reported:AttributeError: module 'hydra' has no attribute 'main'


Solution:

2. Uninstall the installed hydra: pip uninstall hydra
3. Instead of using the following command: pip install hydra-core --upgrade, It will be install fine!

Read More: