Installing PyTorch in Google Colabs
I am currently trying to run my code in Google Colabs and for that I need PyTorch. This is the feedback I got.
&gt; ValueError                                Traceback (most recent call last)
&lt;ipython-input-26-3d0da87b83cc&gt; in &lt;module&gt;()
     13 #from sentence_transformers import SentenceTransformer
     14 get_ipython().system('pip install torch')
---&gt; 15 import torch
     16 get_ipython().system('pip install transformers')
     17 from transformers import BertTokenizer, BertModel
&gt; 
&gt; /usr/local/lib/python3.7/dist-packages/torch/__init__.py in &lt;module&gt;()
&gt;     195     if USE_GLOBAL_DEPS:
&gt;     196         _load_global_deps()
&gt; --&gt; 197     from torch._C import *  # noqa: F403
&gt;     198 
&gt;     199 # Appease the type checker; ordinarily this binding is inserted by the
&gt; 
&gt; ValueError: module functions cannot set METH_CLASS or METH_STATIC

I read that it could have to do with Numpy and tried another version, which also failed.

Remove the old numpy and run the following code.
pip install -U numpy

Found the solution here.
