Here is my file structure and requirements.txt:
Getting ModuleNotFoundError
, any help will be appreciated.
main.py
from fastapi import FastAPI
from .import models
from .database import engine
from .routers import ratings
models.Base.metadata.create_all(bind=engine)
app = FastAPI()
app.include_router(ratings.router)
ModuleNotFound
indicates that the relevant module has not been installed in the interpreter you're trying to use. How have you installed the modules? What doespip freeze
running in the environment for your Python interpreter say? How have you configured your Python environment?