# Getting torch import error

**URL:** <https://discuss.huggingface.co/t/getting-torch-import-error/70491>\
**Category:** Beginners\
**Created:** [January 24, 2024, 11:51pm UTC](https://discuss.huggingface.co/t/getting-torch-import-error/70491 "2024-01-24T23:51:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manaswim](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/manaswim/32/21100_2.png) [@manaswim](https://discuss.huggingface.co/u/manaswim)\
**Post date:** [January 24, 2024, 11:51pm UTC](https://discuss.huggingface.co/t/getting-torch-import-error/70491/1 "2024-01-24T23:51:04Z")

</div>

I am getting a import saying saying there is no torch module when deploying my model to hugging face spaces using gradio. I explicitly put it in my requirements.py file. How do I fix this? My repository is [Fvm - a Hugging Face Space by manaswim](https://huggingface.co/spaces/manaswim/fvm).

---

<div class="post-metadata">

**Author:** ![thiruvanth](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@thiruvanth](https://discuss.huggingface.co/u/thiruvanth)\
**Post date:** [April 11, 2024, 7:58am UTC](https://discuss.huggingface.co/t/getting-torch-import-error/70491/2 "2024-04-11T07:58:17Z")

</div>

getting the same error , can you please share how you overcame this
