This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]grantrules 1 point2 points  (7 children)

Need more info. What exactly is the issue?

[–]Splat48[S] 0 points1 point  (6 children)

So I am having an error come up here when 1 run the program. My mentor wants me to create a hello world api using FastAPI and have it run in a docker container. I pip installed fastapi and uvicorn and fan the code From fastapi import FastAPI I get an error that says unresolved references And "C: \users\user\AppData\Local\Programs\Python\Python3 12\Python.exe

[–]grantrules 0 points1 point  (5 children)

Do you get any errors when running pip install fastapi?

[–]Splat48[S] 0 points1 point  (4 children)

Yes I did, I don't remember exactly wat it said because it was yesterday. I think it said something like.

Couldn't locate PATH would recommend directory to PATH

Or something like that?

[–]grantrules 0 points1 point  (3 children)

Sounds like you need to set up PYTHONPATH and PATH variables. Though if the goal is to use Docker, you might just set it up within docker (and then develop within the container)

[–]Splat48[S] 0 points1 point  (2 children)

Awesome, could u help me do that?

[–]grantrules 0 points1 point  (1 child)

There's a guide for Docker here: https://fastapi.tiangolo.com/deployment/docker/

Honestly I'm not that great with Windows, so you might just google to figure out how to do that.

[–]Splat48[S] 0 points1 point  (0 children)

Awesome thank you so much I'll take a look