When I install package with python and import it, I often get a missing imports message such as:
Import "fastapi" could not be resolvedPylancereportMissingImports
The imports always work perfectly fine, the fastapi example above will run a server and I can build an API without issue.
Can anyone explain why I am getting this error and how I could get rid of it?
fastapi.py, if you name it in this could way you would get import errors. (Avoid filenames similar to package names)Conda and PiP on you system.same interpreter is selected.$ pip list | grep fastapi
OPT Virtual Environments to avoid these troubles.
Thank you!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With