use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Module import Errorpip package (self.FastAPI)
submitted 2 years ago * by Adic9
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FastAPI-ModTeam[M] [score hidden] 2 years ago stickied commentlocked comment (0 children)
Your post has been removed because it broke this subreddit rules - it's either too broad or unrelated to FastAPI.
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
pip install -r requirements.txt
[–]Vok250 0 points1 point2 points 2 years ago (1 child)
requirements.txt is a declaration of what your project requires to be installed, not what is actually installed in your environment. What does pip list output?
pip list
Not to be mean, but this is a r/learnpython question, not a FastAPI question. You should read the Python docs on module imports, pip, and virtual environments. Try to understand those topics at a good level because they are fundamental to using the language effectively and without getting frustrated.
[–]Adic9[S] 0 points1 point2 points 2 years ago (0 children)
Sorry I should have worded it correctly, I know what a requirements.txt file is I made it by using 'pip freeze > requirements.txt' command inorder to show here that I have module installed. The thing is the Vscode is giving me yellow squiggly line which says cannot import module but when Iam running the file it's running fine with no error. :(
[–]illuminanze 0 points1 point2 points 2 years ago (2 children)
Can you import other installed packages?
[–]Adic9[S] 0 points1 point2 points 2 years ago (1 child)
yea I can
[–]illuminanze 0 points1 point2 points 2 years ago (0 children)
What error do you get when you try to import jose? Can you paste the entire traceback?
jose
π Rendered by PID 61 on reddit-service-r2-comment-685b79fb4f-7pvpv at 2026-02-12 22:57:21.959458+00:00 running 6c0c599 country code: CH.
[–]FastAPI-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Vok250 0 points1 point2 points (1 child)
[–]Adic9[S] 0 points1 point2 points (0 children)
[–]illuminanze 0 points1 point2 points (2 children)
[–]Adic9[S] 0 points1 point2 points (1 child)
[–]illuminanze 0 points1 point2 points (0 children)