24 days ago
I have a fastapi python project that i would like to deploy.
I did the setup for the variables but always after deployment it says
ModuleNotFoundError: No module named 'fastapi'
Pinned Solution
23 days ago
You need to install the dependencies before running the app https://docs.railway.com/guides/fastapi#use-a-dockerfile
4 Replies
24 days ago
Could you share a print?
23 days ago
from fastapi import FastAPI, HTTPException, Depends
ModuleNotFoundError: No module named 'fastapi'
Traceback (most recent call last):
File "/app/main.py", line 1, in <module>
23 days ago
You need to install the dependencies before running the app https://docs.railway.com/guides/fastapi#use-a-dockerfile
23 days ago
I understood how to setup the requirements.txt file and then it worked, thank you
Status changed to Solved sam-a • 23 days ago