Home > Back-end >  pylance: import could not be resolved
pylance: import could not be resolved

Time:10-22

I am using vscode with virtual environment (conda) to write python files on my mac.

I keep seeing import problems from pylance for specific third party AND official libraries (for example pyproj, geopy for third party, math for preinstalled).
for each file the errors/warnings look as follows: screenshot of problems

I am sure that these packages are in my virtual environment (they are included in the conda list packages.

Although so far it seems to me as a cosmetic issue, removing these warnings would be very helpful.
Here (enter image description here

  • Related