2

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?

1
  • Hey! Did you fix your issues? Commented Nov 24, 2019 at 21:53

3 Answers 3

5

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

0

check if you imported torch via : import torch

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.