first install the required packages: python -m pip install fastapi uvicorn[standard] --user for running the server: python -m uvicorn firstAPI:app --reload