# Fastai module not found

**URL:** <https://discuss.huggingface.co/t/fastai-module-not-found/20768>\
**Category:** Beginners\
**Created:** [July 23, 2022, 10:53pm UTC](https://discuss.huggingface.co/t/fastai-module-not-found/20768 "2022-07-23T22:53:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![awesomepotato2016](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@awesomepotato2016](https://discuss.huggingface.co/u/awesomepotato2016)\
**Post date:** [July 23, 2022, 10:53pm UTC](https://discuss.huggingface.co/t/fastai-module-not-found/20768/1 "2022-07-23T22:53:21Z")

</div>

When I try to deploy my app using huggingface, I get an error for fast.ai module not found:

```auto
Traceback (most recent call last):
  File "app.py", line 2, in <module>
    from fastai.collab import *
ModuleNotFoundError: No module named 'fastai'

```

Link: [Recommender - a Hugging Face Space by awesomepotato2016](https://huggingface.co/spaces/awesomepotato2016/recommender)  
How can I install fast.ai into my Huggingface environment?

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [July 24, 2022, 8:49am UTC](https://discuss.huggingface.co/t/fastai-module-not-found/20768/2 "2022-07-24T08:49:50Z")

</div>

It seems you figured this out! For context for others, the dependency needs to be added to `requirements.txt` as in [requirements.txt · awesomepotato2016/recommender at main](https://huggingface.co/spaces/awesomepotato2016/recommender/blob/main/requirements.txt).

---

<div class="post-metadata">

**Author:** ![awesomepotato2016](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@awesomepotato2016](https://discuss.huggingface.co/u/awesomepotato2016)\
**Post date:** [July 24, 2022, 7:42pm UTC](https://discuss.huggingface.co/t/fastai-module-not-found/20768/3 "2022-07-24T19:42:24Z")

</div>

Thank you! It pays to read instructions carefully.

---

<div class="post-metadata">

**Author:** ![edenzohar](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@edenzohar](https://discuss.huggingface.co/u/edenzohar)\
**Post date:** [July 11, 2023, 7:22am UTC](https://discuss.huggingface.co/t/fastai-module-not-found/20768/4 "2023-07-11T07:22:27Z")

</div>

so do i create this  
requirements.txt file and push it to hugginface? with the app.py file ?
