Home > database >  I can't import 'Pandas' to a file while it allows me to import it to another file
I can't import 'Pandas' to a file while it allows me to import it to another file

Time:02-17

I have opened 3 python files, 2 of them do not allow me to do import pandas as pd, while it allows me to do it in another file and it works perfectly in that file.

It tells me "No module named 'pandas'" in those 2 files, I already installed it using python -m pip install pandas, and pip install pandas, how can I import it without having this issue?

CodePudding user response:

Are you running those 3 files in the same (virtual) environment? Installing pandas into one env does not make it available to a different env. You have to manage packages per environment

  • Related