ModuleNotFoundError: __path__ attribute not found on 'hydra' while trying to find 'hydra.experimental'
🐛 Bug
AttributeError: module 'hydra' has no attribute 'path'

PyTorch Version (e.g., 1.0): 1.7.1
OS (e.g., Linux): linux
How you installed PyTorch (conda, pip, source): conda
Python version: 3.8
CUDA/cuDNN version: 11.0/8.0

Additional context
import pytorch_lightning as pl
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~/miniconda3/envs/enn/lib/python3.8/importlib/util.py in find_spec(name, package)
     95             try:
---> 96                 parent_path = parent.__path__
     97             except AttributeError as e:

AttributeError: module 'hydra' has no attribute '__path__'

The above exception was the direct cause of the following exception:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-efd8697dde72> in <module>
----> 1 import pytorch_lightning as pl

~/miniconda3/envs/enn/lib/python3.8/site-packages/pytorch_lightning/__init__.py in <module>
     60     # We are not importing the rest of the lightning during the build process, as it may not be compiled yet
     61 else:
---> 62     from pytorch_lightning import metrics
     63     from pytorch_lightning.callbacks import Callback
     64     from pytorch_lightning.core import LightningDataModule, LightningModule

~/miniconda3/envs/enn/lib/python3.8/site-packages/pytorch_lightning/metrics/__init__.py in <module>
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
---> 14 from pytorch_lightning.metrics.metric import Metric
     15
     16 from pytorch_lightning.metrics.classification import (

~/miniconda3/envs/enn/lib/python3.8/site-packages/pytorch_lightning/metrics/metric.py in <module>
     21 from torch import nn
     22
---> 23 from pytorch_lightning.metrics.utils import _flatten, dim_zero_cat, dim_zero_mean, dim_zero_sum
     24 from pytorch_lightning.utilities.apply_func import apply_to_collection
     25 from pytorch_lightning.utilities.distributed import gather_all_tensors

~/miniconda3/envs/enn/lib/python3.8/site-packages/pytorch_lightning/metrics/utils.py in <module>
     16 import torch
     17
---> 18 from pytorch_lightning.utilities import rank_zero_warn
     19
     20 METRIC_EPS = 1e-6

~/miniconda3/envs/enn/lib/python3.8/site-packages/pytorch_lightning/utilities/__init__.py in <module>
     33 OMEGACONF_AVAILABLE = _module_available("omegaconf")
     34 HYDRA_AVAILABLE = _module_available("hydra")
---> 35 HYDRA_EXPERIMENTAL_AVAILABLE = _module_available("hydra.experimental")
     36 HOROVOD_AVAILABLE = _module_available("horovod.torch")
     37 BOLTS_AVAILABLE = _module_available("pl_bolts")

~/miniconda3/envs/enn/lib/python3.8/site-packages/pytorch_lightning/utilities/package_utils.py in _module_available(module_path)
     30         for i in range(len(mods)):
     31             module_path = '.'.join(mods[:i + 1])
---> 32             if importlib.util.find_spec(module_path) is None:
     33                 return False
     34         return True

~/miniconda3/envs/enn/lib/python3.8/importlib/util.py in find_spec(name, package)
     96                 parent_path = parent.__path__
     97             except AttributeError as e:
---> 98                 raise ModuleNotFoundError(
     99                     f"__path__ attribute not found on {parent_name!r} "
    100                     f"while trying to find {fullname!r}", name=fullname) from e

ModuleNotFoundError: __path__ attribute not found on 'hydra' while trying to find 'hydra.experimental'