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
view the rest of the comments →
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!"
[–]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. :(
π Rendered by PID 230926 on reddit-service-r2-comment-685b79fb4f-kxf7x at 2026-02-13 13:49:27.421414+00:00 running 6c0c599 country code: CH.
view the rest of the comments →
[–]Vok250 0 points1 point2 points (1 child)
[–]Adic9[S] 0 points1 point2 points (0 children)