No module named 'torch'?

When deploying my deep learning codefile into huggingface, I met this error:

Traceback (most recent call last):
  File "/home/user/app/app.py", line 4, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
Traceback (most recent call last):
  File "/home/user/app/app.py", line 4, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

That’s very strange.How could I do?

1 Like