Unable to import pytorch_lightning on google colab
I have done the following:
!pip install pytorch_lightning -qqq
import pytorch_lightning

But get the following error:
ImportError                               Traceback (most recent call last)
&lt;ipython-input-7-d883b15aac58&gt; in &lt;module&gt;()
----&gt; 1 import pytorch_lightning

----------------------------------9 frames------------------------------------------------
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/apply_func.py in &lt;module&gt;()
     26 
     27 if _TORCHTEXT_AVAILABLE:
---&gt; 28     from torchtext.data import Batch
     29 else:
     30     Batch = type(None)

ImportError: cannot import name 'Batch' from 'torchtext.data' (/usr/local/lib/python3.7/dist-packages/torchtext/data/__init__.py)

What could the issue be?

As said in Issue #6415 on Github, try installing from the GitHub.
It worked for me.
!pip install git+https://github.com/PyTorchLightning/pytorch-lightning
import pytorch_lightning as pl
print(pl.__version__)

Output:
1.3.0dev

It seems that the error is coming from Issue #6210 and they say it was fixed. I guess it wasn't uploaded to PyPi.
