1
votes

I get the following error on google colaboratory.

ImportErrorTraceback (most recent call last) in () ----> 1 import torch

/usr/local/lib/python3.6/site-packages/torch/init.py in () 54 except ImportError: 55 pass ---> 56 from torch._C import * 57 58 all += [name for name in dir(_C)

ImportError: No module named _C

I tried importing from a different directory. But, still get the same error. Any help?

2
Hey! Did you fix your issues? - Mohamed-Ali Elakhrass

2 Answers

1
votes

Try restarting runtime. Colab sometimes gives errors like this :P

0
votes

Generally that suggests you are in a dir called torch. See this.