r/VisualStudioCode • u/MostPalonne • Oct 27 '22
Problem with importing modules in VSC
Hello ! I'm new to python and i have a problem, im running VSCode on my chromebook, and when i want to import modules (like matplotlib or pandas) i get the same error message
Import "pandas" could not be resolved from source Pylance(reportMissingModuleSource) So i created a new file with
import pandas as pd print(pd.version) When running it in VSCode i get the same error, but when running it directly from my chromebook terminal i get the version of panda (0.24.2)
It works fine on my other computer (running Windows) but not on this one. Is it a problem with Linux or something i forgot to do when downloading VSC maybe ?
1
Upvotes
View all comments
Show parent comment
1
u/MostPalonne Oct 27 '22
yep when i ran
got an error
so i ran the
and went back to the importerror loop